7 * \brief SHA-1 declaration.
17 #define SHA1_HASH_BITS 160
18 #define SHA1_BLOCK_BITS 512
21 * \brief SHA-1 context type
29 typedef uint8_t sha1_hash_t[SHA1_HASH_BITS/8];
31 void sha1_init(sha1_ctx_t *state);
33 void sha1_nextBlock (sha1_ctx_t *state, void* block);
34 void sha1_lastBlock (sha1_ctx_t *state, void* block, uint16_t length);
36 void sha1_ctx2hash (sha1_hash_t *dest, sha1_ctx_t *state);
37 void sha1 (sha1_hash_t *dest, void* msg, uint32_t length);
38 //uint32_t change_endian32(uint32_t x);