all repos — TinyCrypT @ 95faecf39b87b4d6d12e0a8b53c50192046edc6f

Short and sweet classical cryptographic primitives

tinycrypt/sha2.h (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
#ifndef TCT_SHA2_H
#define TCT_SHA2_H

#include <stdint.h>

/// Implements the NIST SHA-256 algorithm
void tct_sha256 (const uint8_t *data, uint64_t data_len, uint8_t *hash_out);

/// Implements the NIST SHA-512 algorithm
void tct_sha512 (const uint8_t *data, uint64_t data_len, uint8_t *hash_out);

#endif