Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Deian Stefan committed Jan 5, 2012
0 parents commit 68eced8
Show file tree
Hide file tree
Showing 62 changed files with 2,057,173 additions and 0 deletions.
39 changes: 39 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
################################################################################

CUBEATTACK=cube_attack
EXAMPLE=trivium
#example
#trivium
# Add source files here
EXECUTABLE := $(CUBEATTACK)
# CUDA source files (compiled with cudacc)
CUFILES := $(CUBEATTACK)_reconstruct_p.cu
# CUDA dependency files
CU_DEPS := $(CUBEATTACK).h $(EXAMPLE)/$(EXAMPLE)_kernel.cu

# C/C++ source files (compiled with gcc / c++)
CCFILES := $(CUBEATTACK).cpp

C_DEPS := $(CUBEATTACK).h \
$(EXAMPLE)/$(EXAMPLE).h $(EXAMPLE)/$(EXAMPLE).c \

OBJS += xsr_rng.o $(EXAMPLE)/$(EXAMPLE).o

#keep =1
verbose =1

NVCCFLAGS := -arch sm_13
#-Xptxas -v --maxrregcount 16

#CFLAGS = -fopenmp
#CXXFLAGS = -fopenmp


################################################################################
# Rules and targets
include $(HOME)/NVIDIA_GPU_Computing_SDK/C/common/common.mk

xsr_rng.o: xsr_rng.c xsr_rng.h
g++ -o xsr_rng.o -c xsr_rng.c
$(EXAMPLE)/$(EXAMPLE).o: $(EXAMPLE)/$(EXAMPLE).c $(EXAMPLE)/$(EXAMPLE).h
g++ -o $(EXAMPLE)/$(EXAMPLE).o -c $(EXAMPLE)/$(EXAMPLE).c
10 changes: 10 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
This is an implementation of a CUDA CubeAttack framework. The code is
copied from my old Master's thesis svn repo (so certain things might
be missing -- if you find that this is the case, please let me know).
at the request of a few students working on a similar topic.
See the thesis for high-level details of the implementation.


The implementation includes an CUDA implementations of the XSR
random number generator, and the Trivium and MICKEY strem ciphers.
See the gSTREM repo for implementation of other eSTREAM ciphers.
Loading

0 comments on commit 68eced8

Please sign in to comment.