modules/woz_aliro/src/aliro_hash.h
asxeem/openaliro
Module
aliro_hash.h
Streaming SHA-256 (FIPS 180-4) implementation used by the Aliro crypto layer.
Overview
Streaming SHA-256 (FIPS 180-4) implementation used by the Aliro crypto layer. Declares struct aliro_sha256, the incremental hash context used across init/update/finish calls.
used by aliro_crypto.c aliro_hash.c aliro_stepup.c
API
Cstruct aliro_sha256
modules/woz_aliro/src/aliro_hash.h:30
Streaming SHA-256 (FIPS 180-4).
##define ALIRO_SHA256_BLOCK 64u
modules/woz_aliro/src/aliro_hash.h:26
##define ALIRO_SHA256_LEN 32u
modules/woz_aliro/src/aliro_hash.h:27
Fvoid aliro_sha256_init(struct aliro_sha256 *s)
modules/woz_aliro/src/aliro_hash.h:37
Fvoid aliro_sha256_update(struct aliro_sha256 *s, const void *data, size_t len)
modules/woz_aliro/src/aliro_hash.h:38
Fvoid aliro_sha256_final(struct aliro_sha256 *s, uint8_t out[ALIRO_SHA256_LEN])
modules/woz_aliro/src/aliro_hash.h:39
Fvoid aliro_hmac_sha256(const uint8_t *key, size_t key_len, const void *msg, size_t msg_len, uint8_t out[ALIRO_SHA256_LEN])
modules/woz_aliro/src/aliro_hash.h:45
Fvoid aliro_hkdf_extract(const uint8_t *salt, size_t salt_len, const uint8_t *ikm, size_t ikm_len, uint8_t prk[ALIRO_SHA256_LEN])
modules/woz_aliro/src/aliro_hash.h:54
Fint aliro_hkdf_expand(const uint8_t prk[ALIRO_SHA256_LEN], const uint8_t *info, size_t info_len, uint8_t *out, size_t out_len)
modules/woz_aliro/src/aliro_hash.h:56
Fint aliro_hkdf(const uint8_t *salt, size_t salt_len, const uint8_t *ikm, size_t ikm_len, const uint8_t *info, size_t info_len, uint8_t *out, size_t out_len)
modules/woz_aliro/src/aliro_hash.h:58
Fint aliro_x963_kdf(const uint8_t *z, size_t z_len, const uint8_t *info, size_t info_len, uint8_t *out, size_t out_len)
modules/woz_aliro/src/aliro_hash.h:66