SHA-1#

Caution: SHA-1 is insecure. Please avoid or ask your cryptographer of trust for permission.

API Reference#

One-Shot#

Example

const char* message = "Hello, World!";
uint32_t message_size = strlen(message);

// 160 Bit / 8 = 20 Byte
uint8_t digest[160 / 8];

Hacl_Hash_SHA1_legacy_hash((uint8_t*)message, message_size, digest);

Streaming#