m5531_crypto_hash.c
void sha512ProcessBlock(Sha512Context *context)
Process message in 16-word blocks.
Definition: m5531_crypto_hash.c:360
void sha256ProcessBlock(Sha256Context *context)
Process message in 16-word blocks.
Definition: m5531_crypto_hash.c:283
void keccakAbsorb(KeccakContext *context, const void *input, size_t length)
Absorb data.
Definition: m5531_crypto_hash.c:564
#define CRYPTO_HMAC_CTL_OPMODE_SHA3_384
Definition: m5531_crypto_hash.h:53
M5531 hash hardware accelerator.
void keccakProcessData(const uint8_t *data, size_t length, size_t blockSize, uint32_t *a)
Update state array.
Definition: m5531_crypto_hash.c:455
General definitions for cryptographic algorithms.
#define CRYPTO_HMAC_CTL_OPMODE_SHA3_224
Definition: m5531_crypto_hash.h:51
Collection of hash algorithms.
Keccak sponge function.
void sm3ProcessBlock(Sm3Context *context)
Process message in 16-word blocks.
Definition: m5531_crypto_hash.c:437
void sha1Update(Sha1Context *context, const void *data, size_t length)
Update the SHA-1 context with a portion of the message being hashed.
Definition: m5531_crypto_hash.c:146
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
M5531 hardware cryptographic accelerator.
void sha512Update(Sha512Context *context, const void *data, size_t length)
Update the SHA-512 context with a portion of the message being hashed.
Definition: m5531_crypto_hash.c:300
void sha1ProcessBlock(Sha1Context *context)
Process message in 16-word blocks.
Definition: m5531_crypto_hash.c:206
uint32_t reverseInt32(uint32_t value)
Reverse bit order in a 32-bit word.
Definition: cpu_endian.c:123
void sha256Update(Sha256Context *context, const void *data, size_t length)
Update the SHA-256 context with a portion of the message being hashed.
Definition: m5531_crypto_hash.c:223
#define CRYPTO_HMAC_CTL_OPMODE_SHA512
Definition: m5531_crypto_hash.h:48
#define CRYPTO_HMAC_CTL_OPMODE_SHA3_256
Definition: m5531_crypto_hash.h:50
void sm3Update(Sm3Context *context, const void *data, size_t length)
Update the SM3 context with a portion of the message being hashed.
Definition: m5531_crypto_hash.c:377
#define CRYPTO_HMAC_CTL_OPMODE_SHA224
Definition: m5531_crypto_hash.h:47
void hashProcessData(uint32_t opmode, const uint8_t *data, size_t length, uint32_t *h, size_t hLen)
Update hash value.
Definition: m5531_crypto_hash.c:56
#define CRYPTO_HMAC_CTL_OPMODE_SHA3_512
Definition: m5531_crypto_hash.h:52
Debugging facilities.
#define CRYPTO_HMAC_CTL_OPMODE_SHA256
Definition: m5531_crypto_hash.h:46
