The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
SHA1 HMAC not dependent on OpenSSL. More...
#include <freeradius-devel/util/sha1.h>
#include <freeradius-devel/util/atexit.h>
#include <freeradius-devel/util/strerror.h>
Go to the source code of this file.
Functions | |
int | fr_hmac_sha1 (uint8_t digest[static SHA1_DIGEST_LENGTH], uint8_t const *in, size_t inlen, uint8_t const *key, size_t key_len) |
Calculate HMAC using internal SHA1 implementation. More... | |
SHA1 HMAC not dependent on OpenSSL.
Adapted from hmacmd5.c (HMAC-MD5). Test cases from RFC2202.
Definition in file hmac_sha1.c.
int fr_hmac_sha1 | ( | uint8_t | digest[static SHA1_DIGEST_LENGTH], |
uint8_t const * | in, | ||
size_t | inlen, | ||
uint8_t const * | key, | ||
size_t | key_len | ||
) |
Calculate HMAC using internal SHA1 implementation.
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. |
Definition at line 124 of file hmac_sha1.c.