SHA1
SHA1 utilities. More...
Modules |
|
Types | |
SHA1 data types.
|
|
Functions |
|
void | gos_sha1_starts ( gos_sha1_context_t *ctx) |
SHA-1 context setup.
More...
|
|
void | gos_sha1_update ( gos_sha1_context_t *ctx, const unsigned char *input, int32_t ilen) |
SHA-1 process buffer.
More...
|
|
void | gos_sha1_finish ( gos_sha1_context_t *ctx, unsigned char output[20]) |
SHA-1 final digest.
More...
|
|
void | gos_sha1 (const unsigned char *input, int32_t ilen, unsigned char output[20]) |
Output = SHA-1( input buffer )
More...
|
|
void | gos_sha1_hmac_starts ( gos_sha1_hmac_context_t *ctx, const unsigned char *key, uint32_t keylen) |
SHA-1 HMAC context setup.
More...
|
|
void | gos_sha1_hmac_update ( gos_sha1_hmac_context_t *ctx, const unsigned char *input, uint32_t ilen) |
SHA-1 HMAC process buffer.
More...
|
|
void | gos_sha1_hmac_finish ( gos_sha1_hmac_context_t *ctx, unsigned char output[20]) |
SHA-1 HMAC final digest.
More...
|
|
void | gos_sha1_hmac (const unsigned char *key, uint32_t keylen, const unsigned char *input, uint32_t ilen, unsigned char output[20]) |
Output = HMAC-SHA-1( hmac key, input buffer )
More...
|
|
Detailed Description
SHA1 utilities.
Function Documentation
◆ gos_sha1()
void gos_sha1 | ( | const unsigned char * |
input,
|
int32_t |
ilen,
|
||
unsigned char |
output[20]
|
||
) |
Output = SHA-1( input buffer )
- Parameters
-
input
buffer holding the data ilen
length of the input data output
SHA-1 checksum result
◆ gos_sha1_finish()
void gos_sha1_finish | ( | gos_sha1_context_t * |
ctx,
|
unsigned char |
output[20]
|
||
) |
SHA-1 final digest.
- Parameters
-
ctx
SHA-1 context output
SHA-1 checksum result
◆ gos_sha1_hmac()
void gos_sha1_hmac | ( | const unsigned char * |
key,
|
uint32_t |
keylen,
|
||
const unsigned char * |
input,
|
||
uint32_t |
ilen,
|
||
unsigned char |
output[20]
|
||
) |
Output = HMAC-SHA-1( hmac key, input buffer )
- Parameters
-
key
HMAC secret key keylen
Key length input
buffer holding the data ilen
Input buffer length output
HMAC-SHA-1 result
◆ gos_sha1_hmac_finish()
void gos_sha1_hmac_finish | ( | gos_sha1_hmac_context_t * |
ctx,
|
unsigned char |
output[20]
|
||
) |
SHA-1 HMAC final digest.
- Parameters
-
ctx
HMAC context output
SHA-1 HMAC checksum result
◆ gos_sha1_hmac_starts()
void gos_sha1_hmac_starts | ( | gos_sha1_hmac_context_t * |
ctx,
|
const unsigned char * |
key,
|
||
uint32_t |
keylen
|
||
) |
SHA-1 HMAC context setup.
- Parameters
-
ctx
HMAC context to be initialized key
HMAC secret key keylen
length of the HMAC key
◆ gos_sha1_hmac_update()
void gos_sha1_hmac_update | ( | gos_sha1_hmac_context_t * |
ctx,
|
const unsigned char * |
input,
|
||
uint32_t |
ilen
|
||
) |
SHA-1 HMAC process buffer.
- Parameters
-
ctx
HMAC context input
buffer holding the data ilen
length of the input data
◆ gos_sha1_starts()
void gos_sha1_starts | ( | gos_sha1_context_t * |
ctx
|
) |
SHA-1 context setup.
- Parameters
-
ctx
context to be initialized
◆ gos_sha1_update()
void gos_sha1_update | ( | gos_sha1_context_t * |
ctx,
|
const unsigned char * |
input,
|
||
int32_t |
ilen
|
||
) |
SHA-1 process buffer.
- Parameters
-
ctx
SHA-1 context input
buffer holding the data ilen
length of the input data