|
iPXE
|
Keyed-Hashing for Message Authentication. More...
Go to the source code of this file.
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| void | hmac_key (struct digest_algorithm *digest, void *ctx, const void *secret, size_t len, void *key) |
| Construct HMAC reduced key. | |
| void | hmac_init_key (struct digest_algorithm *digest, void *ctx, const void *key) |
| Initialise HMAC from reduced key. | |
| void | hmac_init (struct digest_algorithm *digest, void *ctx, const void *secret, size_t len) |
| Initialise HMAC. | |
| void | hmac_final (struct digest_algorithm *digest, void *ctx, void *hmac) |
| Finalise HMAC. | |
Keyed-Hashing for Message Authentication.
Definition in file hmac.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
| void hmac_key | ( | struct digest_algorithm * | digest, |
| void * | ctx, | ||
| const void * | secret, | ||
| size_t | len, | ||
| void * | key ) |
Construct HMAC reduced key.
| digest | Digest algorithm to use |
| ctx | HMAC context |
| secret | Secret key |
| len | Length of secret key |
| key | HMAC reduced key to fill in |
Definition at line 59 of file hmac.c.
References ctx, digest_final(), digest_init(), digest_update(), hmac_context_t, hmac_key_t, key, len, memcpy(), and memset().
Referenced by hmac_init(), hmac_okx(), and tls_set_kdf_master().
| void hmac_init_key | ( | struct digest_algorithm * | digest, |
| void * | ctx, | ||
| const void * | key ) |
Initialise HMAC from reduced key.
| digest | Digest algorithm |
| ctx | HMAC context |
| hkey | HMAC key |
Definition at line 82 of file hmac.c.
References ctx, digest_init(), digest_update(), hmac_context_t, hmac_key_t, and key.
Referenced by hmac_init(), hmac_okx(), and tls_p_hash_va().
| void hmac_init | ( | struct digest_algorithm * | digest, |
| void * | ctx, | ||
| const void * | secret, | ||
| size_t | len ) |
Initialise HMAC.
Definition at line 106 of file hmac.c.
References ctx, hmac_context_t, hmac_init_key(), hmac_key(), and len.
Referenced by ccmp_kie_mic(), hkdf_expand(), hkdf_extract(), hmac_drbg_update_key(), hmac_drbg_update_value(), hmac_okx(), ntlm_key(), ntlm_response(), pbkdf2_sha1_f(), peerdist_info_passphrase_okx(), peerdist_info_segment_hash(), prf_sha1(), tkip_kie_mic(), and tls_hmac_init().
| void hmac_final | ( | struct digest_algorithm * | digest, |
| void * | ctx, | ||
| void * | hmac ) |
Finalise HMAC.
| digest | Digest algorithm to use |
| ctx | HMAC context |
| hmac | HMAC digest to fill in |
Definition at line 124 of file hmac.c.
References ctx, digest_final(), digest_init(), digest_update(), digest_algorithm::digestsize, hmac_context_t, and memset().
Referenced by ccmp_kie_mic(), hkdf_expand(), hkdf_extract(), hmac_drbg_update_key(), hmac_drbg_update_value(), hmac_okx(), ntlm_key(), ntlm_response(), pbkdf2_sha1_f(), peerdist_info_passphrase_okx(), peerdist_info_segment_hash(), prf_sha1(), tkip_kie_mic(), tls_hmac_final(), and tls_p_hash_va().