Decleration of hash wrap function. More...
#include <stddef.h>#include "epid/common/types.h"#include "epid/member/tiny/math/mathtypes.h"#include "epid/member/tiny/math/sha512.h"#include "epid/member/tiny/math/sha256.h"Data Structures | |
| union | sha_digest |
| Sha Digest Element. More... | |
| struct | tiny_sha |
| Tiny Sha wrapper Element. More... | |
Functions | |
| void | tinysha_init (HashAlg sha_type, tiny_sha *s) |
| Initializes the hash state. More... | |
| void | tinysha_update (tiny_sha *s, void const *data, size_t data_length) |
| Hashes data into state using a chosen hash algorithm. More... | |
| void | tinysha_final (unsigned char *digest, tiny_sha *s) |
| Computes the hash algorithm in the digest buffer. More... | |
| size_t | tinysha_digest_size (tiny_sha *s) |
| Returns size of digest depending on hash algorithm. More... | |
Decleration of hash wrap function.
| size_t tinysha_digest_size | ( | tiny_sha * | s | ) |
Returns size of digest depending on hash algorithm.
| [in] | s | The hash state. Must be non-null or behavior is undefined. |
| void tinysha_final | ( | unsigned char * | digest, |
| tiny_sha * | s | ||
| ) |
Computes the hash algorithm in the digest buffer.
| [out] | digest | The computed digest. Must be non-null or behavior is undefined. |
| [in] | s | The hash state. Must be non-null or behavior is undefined. |
Initializes the hash state.
| [in] | sha_type | Type of hash algorithm |
| [in,out] | s | The hash state to initialize. |
| void tinysha_update | ( | tiny_sha * | s, |
| void const * | data, | ||
| size_t | data_length | ||
| ) |
Hashes data into state using a chosen hash algorithm.
| [in,out] | s | The hash state. Must be non-null or behavior is undefined. |
| [in] | data | The data to hash into s. |
| [in] | data_length | The size of data in bytes. |