![]() |
CRYPTO-C v1.1.3
C/C++ Documentation
|
#include "md5.h"
MD5 CUDA hash function support.
This file is based on Brad Conte's basic implementations of cryptography algorithms...
... which was released into the Public Domain.
Functions | |
__device__ void | cu_md5_transform (MD5_CTX *ctx, const uint8_t data[]) |
MD5 transformation rounds. More... | |
__device__ void | cu_md5_init (MD5_CTX *ctx) |
Initialize a MD5 context. More... | |
__device__ void | cu_md5_update (MD5_CTX *ctx, const void *in, size_t inlen) |
Add inlen bytes from in to a MD5 context for hashing. More... | |
__device__ void | cu_md5_final (MD5_CTX *ctx, void *out) |
Finalize a MD5 message digest. More... | |
__device__ void | cu_md5 (const void *in, size_t inlen, void *out) |
Convenient all-in-one MD5 computation. More... | |
__device__ void cu_md5 | ( | const void * | in, |
size_t | inlen, | ||
void * | out | ||
) |
Convenient all-in-one MD5 computation.
Performs cu_md5_init(), cu_md5_update() and cu_md5_final(), and places the resulting hash in out.
in | Pointer to data to hash |
inlen | Length of in data, in bytes |
out | Pointer to location to place the message digest |
__device__ void cu_md5_final | ( | MD5_CTX * | ctx, |
void * | out | ||
) |
Finalize a MD5 message digest.
Generate the MD5 message digest and place in out.
ctx | Pointer to MD5 context |
out | Pointer to location to place the message digest |
__device__ void cu_md5_init | ( | MD5_CTX * | ctx | ) |
Initialize a MD5 context.
ctx | Pointer to MD5 context |
__device__ void cu_md5_transform | ( | MD5_CTX * | ctx, |
const uint8_t | data[] | ||
) |
MD5 transformation rounds.
ctx | Pointer to MD5 context |
data | Pointer to input to be transformed |
__device__ void cu_md5_update | ( | MD5_CTX * | ctx, |
const void * | in, | ||
size_t | inlen | ||
) |
Add inlen bytes from in to a MD5 context for hashing.
ctx | Pointer to MD5 context |
in | Pointer to data to hash |
inlen | Length of in data, in bytes |