Browse Source

Add documentation for SHA2 blockwise functions

master
Joost Rijneveld 5 years ago
parent
commit
d325e39c68
No known key found for this signature in database GPG Key ID: A4FE39CF49CBC553
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      common/sha2.h

+ 4
- 0
common/sha2.h View File

@@ -4,6 +4,10 @@
#include <stddef.h>
#include <stdint.h>

/* The incremental API allows hashing of individual input blocks; these blocks
must be exactly 64 bytes each.
Use the 'finalize' functions for any remaining bytes (possibly over 64). */

void sha224_inc_init(uint8_t *state);
void sha224_inc_blocks(uint8_t *state, const uint8_t *in, size_t inblocks);
void sha224_inc_finalize(uint8_t *out, uint8_t *state, const uint8_t *in, size_t inlen);


Loading…
Cancel
Save