m460_crypto_hash.c
void hashProcessData(uint32_t opmode, const uint8_t *data, size_t length, uint32_t *h, size_t hLen)
Update hash value.
Definition: m460_crypto_hash.c:56
#define CRPT_HMAC_CTL_OPMODE_SHA3_512
Definition: m2354_crypto_hash.h:52
void sha256ProcessBlock(Sha256Context *context)
Process message in 16-word blocks.
Definition: m460_crypto_hash.c:284
void sha512ProcessBlock(Sha512Context *context)
Process message in 16-word blocks.
Definition: m460_crypto_hash.c:361
void sha1Update(Sha1Context *context, const void *data, size_t length)
Update the SHA-1 context with a portion of the message being hashed.
Definition: m460_crypto_hash.c:147
M460 hash hardware accelerator.
#define CRPT_HMAC_CTL_OPMODE_SHA3_256
Definition: m2354_crypto_hash.h:50
void keccakProcessData(const uint8_t *data, size_t length, size_t blockSize, uint32_t *a)
Update state array.
Definition: m460_crypto_hash.c:379
General definitions for cryptographic algorithms.
Collection of hash algorithms.
Keccak sponge function.
void keccakAbsorb(KeccakContext *context, const void *input, size_t length)
Absorb data.
Definition: m460_crypto_hash.c:489
void osAcquireMutex(OsMutex *mutex)
Acquire ownership of the specified mutex object.
Definition: os_port_chibios.c:396
void osReleaseMutex(OsMutex *mutex)
Release ownership of the specified mutex object.
Definition: os_port_chibios.c:408
void sha1ProcessBlock(Sha1Context *context)
Process message in 16-word blocks.
Definition: m460_crypto_hash.c:207
#define CRPT_HMAC_CTL_OPMODE_SHA3_384
Definition: m2354_crypto_hash.h:53
M460 hardware cryptographic accelerator.
#define CRPT_HMAC_CTL_OPMODE_SHA3_224
Definition: m2354_crypto_hash.h:51
uint32_t reverseInt32(uint32_t value)
Reverse bit order in a 32-bit word.
Definition: cpu_endian.c:123
Debugging facilities.
void sha512Update(Sha512Context *context, const void *data, size_t length)
Update the SHA-512 context with a portion of the message being hashed.
Definition: m460_crypto_hash.c:301
void sha256Update(Sha256Context *context, const void *data, size_t length)
Update the SHA-256 context with a portion of the message being hashed.
Definition: m460_crypto_hash.c:224