#include <cyfer/cyfer.h>
Go to the source code of this file.
Data Structures | |
| struct | CYFER_Hash_t |
| A structure describing supported hash algorithms. More... | |
Defines | |
| #define | CYFER_HASH_NONE 0 |
| #define | CYFER_HASH_MD4 1 |
| #define | CYFER_HASH_MD5 2 |
| #define | CYFER_HASH_SHA1 3 |
| #define | CYFER_HASH_RMD160 4 |
| #define | CYFER_HASH_ADLER32 5 |
| #define | CYFER_HASH_SNEFRU 6 |
| #define | CYFER_HASH_CRC32 7 |
| #define | CYFER_HASH_MD2 8 |
| #define | CYFER_HASH_SHA256 9 |
Typedefs | |
| typedef void | CYFER_HASH_CTX |
| Hash algorithm context. | |
Functions | |
| CYFER_Hash_t * | CYFER_Hash_Get_Supported (void) |
| Returns a list of supported hash algorithms. | |
| int | CYFER_Hash_Select (const char *name, size_t *length) |
| Selects hash algorithm to use. | |
| CYFER_HASH_CTX * | CYFER_Hash_Init (int type) |
| Creates and initializes algorithm context. | |
| void | CYFER_Hash_Update (CYFER_HASH_CTX *ctx, const unsigned char *data, size_t len) |
| Processes a chunk of data. | |
| void | CYFER_Hash_Finish (CYFER_HASH_CTX *ctx, unsigned char *md) |
| Finalizes the algorithm and returns the hash value. | |
| int | CYFER_Hash (int type, const unsigned char *data, size_t len, unsigned char *md) |
| An utility function to calculate hash of one chunk of data. | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Hash algorithm context.
|
|
||||||||||||||||||||
|
An utility function to calculate hash of one chunk of data.
|
|
||||||||||||
|
Finalizes the algorithm and returns the hash value.
|
|
|
Returns a list of supported hash algorithms.
|
|
|
Creates and initializes algorithm context.
|
|
||||||||||||
|
Selects hash algorithm to use.
|
|
||||||||||||||||
|
Processes a chunk of data.
|
1.3-rc3