Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct cryptx_hash_sha256 {
- uint8_t data[64]; /**< holds sha-256 block for transformation */
- uint8_t datalen; /**< holds the current length of data in data[64] */
- uint8_t bitlen[8]; /**< holds the current length of transformed data */
- uint32_t state[8]; /**< holds hash state for transformed data */
- };
- typedef union {
- struct cryptx_hash_sha256;
- } cryptx_hash_internal_h;
- struct cryptx_hash_ctx {
- bool (*init)(void* ctx);
- void (*update)(void* ctx, const void* data, size_t len);
- void (*final)(void* ctx, void* output);
- cryptx_hash_internal_h meta;
- uint8_t digest_len;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement