![]() |
CRYPTO-C v1.1.3
C/C++ Documentation
|
Go to the source code of this file.
#include "utildev.h"
MD2 hash function support.
This file is based on Brad Conte's basic implementations of cryptography algorithms...
... which was released into the Public Domain.
Macros | |
#define | MD2LEN 16 |
MD2 message digest length, in bytes. | |
Data Structures | |
struct | MD2_CTX |
Functions | |
void | md2_init (MD2_CTX *ctx) |
Initialize a MD2 context. More... | |
void | md2_update (MD2_CTX *ctx, const void *in, size_t inlen) |
Add inlen bytes from in to a MD2 context for hashing. More... | |
void | md2_final (MD2_CTX *ctx, void *out) |
Finalize a MD2 message digest. More... | |
void | md2 (const void *in, size_t inlen, void *out) |
Convenient all-in-one MD2 computation. More... | |
void md2 | ( | const void * | in, |
size_t | inlen, | ||
void * | out | ||
) |
Convenient all-in-one MD2 computation.
Performs md2_init(), md2_update() and 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 |
void 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 |
void md2_init | ( | MD2_CTX * | ctx | ) |
Initialize a MD2 context.
ctx | Pointer to MD2 context |
void 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 |