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

Primitive. More...

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

Go to the source code of this file.

Functions

ORDO_PUBLIC int sha256_init (struct SHA256_STATE *state, const void *params)
 
ORDO_PUBLIC void sha256_update (struct SHA256_STATE *state, const void *buffer, size_t len)
 
ORDO_PUBLIC void sha256_final (struct SHA256_STATE *state, void *digest)
 
ORDO_PUBLIC size_t sha256_query (int query, size_t value)
 
ORDO_PUBLIC size_t sha256_bsize (void)
 

Detailed Description

Primitive.

The SHA-256 hash function, which produces a 256-bit digest.

Function Documentation

ORDO_PUBLIC int sha256_init ( struct SHA256_STATE *  state,
const void *  params 
)
See Also
hash_init()
Remarks
The params parameter is ignored.
ORDO_PUBLIC void sha256_update ( struct SHA256_STATE *  state,
const void *  buffer,
size_t  len 
)
See Also
hash_update()
ORDO_PUBLIC void sha256_final ( struct SHA256_STATE *  state,
void *  digest 
)
See Also
hash_final()
ORDO_PUBLIC size_t sha256_query ( int  query,
size_t  value 
)
See Also
hash_query()
ORDO_PUBLIC size_t sha256_bsize ( void  )

Gets the size in bytes of a SHA256_STATE.

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