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
-
inputbuffer holding the data ilenlength of the input data outputSHA-1 checksum result
◆ gos_sha1_finish()
| void gos_sha1_finish | ( | gos_sha1_context_t * |
ctx,
|
| unsigned char |
output[20]
|
||
| ) |
SHA-1 final digest.
- Parameters
-
ctxSHA-1 context outputSHA-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
-
keyHMAC secret key keylenKey length inputbuffer holding the data ilenInput buffer length outputHMAC-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
-
ctxHMAC context outputSHA-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
-
ctxHMAC context to be initialized keyHMAC secret key keylenlength 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
-
ctxHMAC context inputbuffer holding the data ilenlength of the input data
◆ gos_sha1_starts()
| void gos_sha1_starts | ( | gos_sha1_context_t * |
ctx
|
) |
SHA-1 context setup.
- Parameters
-
ctxcontext 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
-
ctxSHA-1 context inputbuffer holding the data ilenlength of the input data