00001 #ifndef __SHA1_KERNEL__
00002 #define __SHA1_KERNEL__
00003
00004 #define SHA1_THREADS_PER_BLK 32
00005 #define MAX_KEY_SIZE 64
00006 #define MAX_HASH_SIZE 20
00007
00008 #include <stdint.h>
00009 #include <cuda_runtime.h>
00010
00011 void hmac_sha1_gpu(char* buf, char* keys, uint32_t *offsets, uint16_t *lengths,
00012 uint32_t *outputs, int N, uint8_t * checkbits,
00013 unsigned threads_per_blk, cudaStream_t stream=0);
00014
00015
00016 #endif