Advertisement
AnthonyCagliano

Untitled

Apr 7th, 2022
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. typedef struct _sha256_ctx {
  2. uint8_t data[64]; /**< holds sha-256 block for transformation */
  3. uint8_t datalen; /**< holds the current length of data in data[64] */
  4. uint8_t bitlen[8]; /**< holds the current length of transformed data */
  5. uint32_t state[8]; /**< holds hash state for transformed data */
  6. } sha256_ctx;
  7.  
  8. typedef struct _hash_ctx {
  9. uint24_t fn_init;
  10. uint24_t fn_update;
  11. uint24_t fn_final;
  12. union _hash {
  13. sha256_ctx sha256;
  14. };
  15. } hash_ctx;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement