![]() |
CRYPTO-C v1.1.3
C/C++ Documentation
|
#include "md2.h"MD2 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_md2_transform (MD2_CTX *ctx, uint8_t data[]) |
| MD2 transformation rounds. More... | |
| __device__ void | cu_md2_init (MD2_CTX *ctx) |
| Initialize a MD2 context. More... | |
| __device__ void | cu_md2_update (MD2_CTX *ctx, const void *in, size_t inlen) |
| Add inlen bytes from in to a MD2 context for hashing. More... | |
| __device__ void | cu_md2_final (MD2_CTX *ctx, void *out) |
| Finalize a MD2 message digest. More... | |
| __device__ void | cu_md2 (const void *in, size_t inlen, void *out) |
| Convenient all-in-one MD2 computation. More... | |
| __device__ void cu_md2 | ( | const void * | in, |
| size_t | inlen, | ||
| void * | out | ||
| ) |
Convenient all-in-one MD2 computation.
Performs cu_md2_init(), cu_md2_update() and cu_md2_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_md2_final | ( | MD2_CTX * | ctx, |
| void * | out | ||
| ) |
Finalize a MD2 message digest.
Generate the MD2 message digest and place in out.
| ctx | Pointer to MD2 context |
| out | Pointer to location to place the message digest |
| __device__ void cu_md2_init | ( | MD2_CTX * | ctx | ) |
Initialize a MD2 context.
| ctx | Pointer to MD2 context |
| __device__ void cu_md2_transform | ( | MD2_CTX * | ctx, |
| uint8_t | data[] | ||
| ) |
MD2 transformation rounds.
| ctx | Pointer to MD2 context |
| data | Pointer to input to be transformed |
MD2 transformation constant.
| __device__ void cu_md2_update | ( | MD2_CTX * | ctx, |
| const void * | in, | ||
| size_t | inlen | ||
| ) |
Add inlen bytes from in to a MD2 context for hashing.
| ctx | Pointer to MD2 context |
| in | Pointer to data to hash |
| inlen | Length of in data, in bytes |