Ordo  0.3.4
Symmetric Cryptography Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
md5.h File Reference

Primitive. More...

#include "ordo/primitives/hash_functions.h"
Include dependency graph for md5.h:

Go to the source code of this file.

Functions

ORDO_PUBLIC int md5_init (struct MD5_STATE *state, const void *params)
 
ORDO_PUBLIC void md5_update (struct MD5_STATE *state, const void *buffer, size_t len)
 
ORDO_PUBLIC void md5_final (struct MD5_STATE *state, void *digest)
 
ORDO_PUBLIC size_t md5_query (int query, size_t value)
 
ORDO_PUBLIC size_t md5_bsize (void)
 

Detailed Description

Primitive.

The MD5 hash function, which produces a 128-bit digest.

Function Documentation

ORDO_PUBLIC int md5_init ( struct MD5_STATE *  state,
const void *  params 
)
See Also
hash_init()
Remarks
The params parameter is ignored.
ORDO_PUBLIC void md5_update ( struct MD5_STATE *  state,
const void *  buffer,
size_t  len 
)
See Also
hash_update()
ORDO_PUBLIC void md5_final ( struct MD5_STATE *  state,
void *  digest 
)
See Also
hash_final()
ORDO_PUBLIC size_t md5_query ( int  query,
size_t  value 
)
See Also
hash_query()
ORDO_PUBLIC size_t md5_bsize ( void  )

Gets the size in bytes of an MD5_STATE.

Returns
The size in bytes of the structure.
Remarks
Binary compatibility layer.