This module contains the implementation of HMAC: Keyed-Hashing for Message Authentication, as described in RFC 2104.
◆ pj_hmac_sha1()
Calculate HMAC-SHA1 digest for the specified input and key with this single function call.
- Parameters
-
input | Pointer to the input stream. |
input_len | Length of input stream in bytes. |
key | Pointer to the authentication key. |
key_len | Length of the authentication key. |
digest | Buffer to be filled with HMAC SHA1 digest. |
◆ pj_hmac_sha1_final()
Finish the message and return the digest.
- Parameters
-
hctx | HMAC-SHA1 context. |
digest | Buffer to be filled with HMAC SHA1 digest. |
References PJ_END_DECL.
◆ pj_hmac_sha1_init()
Initiate HMAC-SHA1 context for incremental hashing.
- Parameters
-
hctx | HMAC-SHA1 context. |
key | Pointer to the authentication key. |
key_len | Length of the authentication key. |
◆ pj_hmac_sha1_update()
Append string to the message.
- Parameters
-
hctx | HMAC-SHA1 context. |
input | Pointer to the input stream. |
input_len | Length of input stream in bytes. |