SHA1 support
File: csp/crypto/csp_sha1.h
Description: SHA1 support. Code originally from Python’s SHA1 Module, who based it on libtom.org.
Defines
Typedefs
Interface Functions
-
void csp_sha1_init(csp_sha1_state_t *state)
[source] Initialize the hash state
- Parameters:
state – hash state.
-
void csp_sha1_process(csp_sha1_state_t *state, const void *data, uint32_t length)
[source] Process a block of memory through the hash.
- Parameters:
state – hash state
data – data.
length – length of data.
-
void csp_sha1_done(csp_sha1_state_t *state, uint8_t *sha1)
[source] Terminate the hash calculation and get the SHA1.
- Parameters:
state – hash state
sha1 – user supplied buffer of minimum #CSP_SHA1_DIGESTSIZE bytes.