|
ProtoCore v0.0.2
Deterministic, zero-heap network stack for embedded targets
|
SHA-1 implementation (FIPS 180-4). More...
#include "crypto/hash/sha1.h"#include "crypto/crypto_opt.h"#include <string.h>#include "mbedtls/sha1.h"Go to the source code of this file.
Functions | |
| PC_CRYPTO_HOT void | pc_sha1 (const uint8_t *data, size_t len, uint8_t digest[PC_SHA1_DIGEST_LEN]) |
| Compute a SHA-1 digest over an arbitrary byte buffer. | |
SHA-1 implementation (FIPS 180-4).
On Arduino (ESP32) targets, delegates to mbedtls_sha1() which uses the hardware SHA accelerator. On native (x86) test targets, uses a portable software implementation so unit tests run without mbedTLS.
Definition in file sha1.cpp.
| PC_CRYPTO_HOT void pc_sha1 | ( | const uint8_t * | data, |
| size_t | len, | ||
| uint8_t | digest[PC_SHA1_DIGEST_LEN] | ||
| ) |