Local implementation of the SHA1 hashing scheme.
More...
#include <freeradius-devel/build.h>
#include <freeradius-devel/missing.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
Go to the source code of this file.
Local implementation of the SHA1 hashing scheme.
SHA-1 in C 100% Public Domain
- Author
- Steve Reid (steve.nosp@m.@edm.nosp@m.web.c.nosp@m.om)
Definition in file sha1.h.
◆ fr_sha1_ctx
◆ SHA1_DIGEST_LENGTH
◆ fr_hmac_sha1()
Calculate HMAC using internal SHA1 implementation.
- Parameters
-
digest | Caller digest to be filled in. |
in | Pointer to data stream. |
inlen | length of data stream. |
key | Pointer to authentication key. |
key_len | Length of authentication key. |
- Returns
- 0 on success.
- -1 on error.
Definition at line 124 of file hmac_sha1.c.
◆ fr_sha1_final()
◆ fr_sha1_final_no_len()
void fr_sha1_final_no_len |
( |
uint8_t |
digest[static SHA1_DIGEST_LENGTH], |
|
|
fr_sha1_ctx * |
context |
|
) |
| |
◆ fr_sha1_init()
◆ fr_sha1_transform()
void fr_sha1_transform |
( |
uint32_t |
state[static 5], |
|
|
uint8_t const |
buffer[static 64] |
|
) |
| |
◆ fr_sha1_update()