SHA1 API. Adapted from https://web.mit.edu/freebsd/head/contrib/wpa/src/crypto/sha1_i.h by Cory McWilliams 2025-09-28.
◆ SHA1_CTX
◆ SHA1Final()
| void SHA1Final |
( |
unsigned char |
digest[20], |
|
|
struct SHA1Context * |
context |
|
) |
| |
Calculate the final hash digest.
- Parameters
-
| digest | Populated with the digest. |
| context | The SHA1 context. |
◆ SHA1Init()
Initialize a SHA1 context.
- Parameters
-
◆ SHA1Transform()
| void SHA1Transform |
( |
uint32_t |
state[5], |
|
|
const unsigned char |
buffer[64] |
|
) |
| |
Perform a SHA1 transformation.
- Parameters
-
| state | The SHA1 state. |
| buffer | The data. |
◆ SHA1Update()
| void SHA1Update |
( |
struct SHA1Context * |
context, |
|
|
const void * |
data, |
|
|
uint32_t |
len |
|
) |
| |
Calculate an ongoing hash for a block of data.
- Parameters
-
| context | The SHA1 context. |
| data | The data to hash. |
| len | The length of data. |