/openssl/providers/implementations/rands/ |
H A D | drbg_hmac.c | 58 if (!EVP_MAC_init(ctx, hmac->K, hmac->blocklen, NULL) in do_hmac() 60 || !EVP_MAC_update(ctx, hmac->V, hmac->blocklen) in do_hmac() 69 return EVP_MAC_init(ctx, hmac->K, hmac->blocklen, NULL) in do_hmac() 70 && EVP_MAC_update(ctx, hmac->V, hmac->blocklen) in do_hmac() 125 memset(hmac->K, 0x00, hmac->blocklen); in ossl_drbg_hmac_init() 127 memset(hmac->V, 0x01, hmac->blocklen); in ossl_drbg_hmac_init() 225 if (!EVP_MAC_init(ctx, hmac->K, hmac->blocklen, NULL) in ossl_drbg_hmac_generate() 271 OPENSSL_cleanse(hmac->K, sizeof(hmac->K)); in drbg_hmac_uninstantiate() 272 OPENSSL_cleanse(hmac->V, sizeof(hmac->V)); in drbg_hmac_uninstantiate() 315 hmac = OPENSSL_secure_zalloc(sizeof(*hmac)); in drbg_hmac_new() [all …]
|
/openssl/providers/implementations/kdfs/ |
H A D | hmacdrbg_kdf.c | 141 KDF_HMAC_DRBG *hmac = (KDF_HMAC_DRBG *)vctx; in hmac_drbg_kdf_get_ctx_params() local 142 PROV_DRBG_HMAC *drbg = &hmac->base; in hmac_drbg_kdf_get_ctx_params() 180 PROV_DRBG_HMAC *drbg = &hmac->base; in hmac_drbg_kdf_set_ctx_params() 195 OPENSSL_free(hmac->entropy); in hmac_drbg_kdf_set_ctx_params() 196 hmac->entropy = ptr; in hmac_drbg_kdf_set_ctx_params() 197 hmac->entropylen = size; in hmac_drbg_kdf_set_ctx_params() 198 hmac->init = 0; in hmac_drbg_kdf_set_ctx_params() 206 OPENSSL_free(hmac->nonce); in hmac_drbg_kdf_set_ctx_params() 207 hmac->nonce = ptr; in hmac_drbg_kdf_set_ctx_params() 208 hmac->noncelen = size; in hmac_drbg_kdf_set_ctx_params() [all …]
|
H A D | hkdf.c | 570 HMAC_CTX *hmac; in HKDF_Expand() local 589 if ((hmac = HMAC_CTX_new()) == NULL) in HKDF_Expand() 592 if (!HMAC_Init_ex(hmac, prk, prk_len, evp_md, NULL)) in HKDF_Expand() 601 if (!HMAC_Init_ex(hmac, NULL, 0, NULL, NULL)) in HKDF_Expand() 604 if (!HMAC_Update(hmac, prev, dig_len)) in HKDF_Expand() 608 if (!HMAC_Update(hmac, info, info_len)) in HKDF_Expand() 611 if (!HMAC_Update(hmac, &ctr, 1)) in HKDF_Expand() 614 if (!HMAC_Final(hmac, prev, NULL)) in HKDF_Expand() 629 HMAC_CTX_free(hmac); in HKDF_Expand()
|
/openssl/demos/mac/ |
H A D | build.info | 8 hmac-sha512 \ 16 INCLUDE[hmac-sha512]=../../include 17 SOURCE[hmac-sha512]=hmac-sha512.c 18 DEPEND[hmac-sha512]=../../libcrypto
|
H A D | Makefile | 8 hmac-sha512 \ 19 hmac-sha512: hmac-sha512.o
|
/openssl/crypto/rsa/ |
H A D | rsa_pk1.c | 290 HMAC_CTX *hmac = NULL; in ossl_rsa_prf() local 303 hmac = HMAC_CTX_new(); in ossl_rsa_prf() 304 if (hmac == NULL) { in ossl_rsa_prf() 322 if (HMAC_Init_ex(hmac, kdk, SHA256_DIGEST_LENGTH, md, NULL) <= 0) { in ossl_rsa_prf() 328 if (HMAC_Init_ex(hmac, NULL, 0, NULL, NULL) <= 0) { in ossl_rsa_prf() 336 if (HMAC_Update(hmac, be_iter, sizeof(be_iter)) <= 0) { in ossl_rsa_prf() 340 if (HMAC_Update(hmac, (unsigned char *)label, llen) <= 0) { in ossl_rsa_prf() 344 if (HMAC_Update(hmac, be_bitlen, sizeof(be_bitlen)) <= 0) { in ossl_rsa_prf() 356 if (HMAC_Final(hmac, hmac_out, &md_len) <= 0) { in ossl_rsa_prf() 362 if (HMAC_Final(hmac, to + pos, &md_len) <= 0) { in ossl_rsa_prf() [all …]
|
H A D | rsa_ossl.c | 438 HMAC_CTX *hmac = NULL; in derive_kdk() local 483 hmac = HMAC_CTX_new(); in derive_kdk() 484 if (hmac == NULL) { in derive_kdk() 489 if (HMAC_Init_ex(hmac, d_hash, sizeof(d_hash), md, NULL) <= 0) { in derive_kdk() 496 if (HMAC_Update(hmac, buf, num - flen) <= 0) { in derive_kdk() 501 if (HMAC_Update(hmac, from, flen) <= 0) { in derive_kdk() 507 if (HMAC_Final(hmac, kdk, &md_len) <= 0) { in derive_kdk() 514 HMAC_CTX_free(hmac); in derive_kdk()
|
/openssl/crypto/pkcs12/ |
H A D | p12_mutl.c | 168 HMAC_CTX *hmac = NULL; in pkcs12_gen_mac() local 272 if ((hmac = HMAC_CTX_new()) == NULL in pkcs12_gen_mac() 273 || !HMAC_Init_ex(hmac, key, keylen, md, NULL) in pkcs12_gen_mac() 274 || !HMAC_Update(hmac, p12->authsafes->d.data->data, in pkcs12_gen_mac() 276 || !HMAC_Final(hmac, mac, maclen)) { in pkcs12_gen_mac() 283 HMAC_CTX_free(hmac); in pkcs12_gen_mac()
|
/openssl/providers/implementations/signature/ |
H A D | mac_legacy_sig.c | 91 MAC_NEWCTX(hmac, "HMAC") 239 MAC_SETTABLE_CTX_PARAMS(hmac, "HMAC") 262 MAC_SIGNATURE_FUNCTIONS(hmac)
|
/openssl/ssl/record/methods/ |
H A D | tls1_meth.c | 470 EVP_MD_CTX *hmac = NULL, *mac_ctx; in tls1_mac() local 485 hmac = EVP_MD_CTX_new(); in tls1_mac() 486 if (hmac == NULL || !EVP_MD_CTX_copy(hmac, hash)) { in tls1_mac() 489 mac_ctx = hmac; in tls1_mac() 551 EVP_MD_CTX_free(hmac); in tls1_mac()
|
/openssl/test/ |
H A D | bad_dtls_test.c | 284 EVP_MAC *hmac = NULL; in send_record() local 309 if (!TEST_ptr(hmac = EVP_MAC_fetch(NULL, "HMAC", NULL)) in send_record() 310 || !TEST_ptr(ctx = EVP_MAC_CTX_new(hmac))) in send_record() 354 EVP_MAC_free(hmac); in send_record()
|
/openssl/providers/implementations/include/prov/ |
H A D | hmac_drbg.h | 29 int ossl_drbg_hmac_generate(PROV_DRBG_HMAC *hmac,
|
/openssl/crypto/hmac/ |
H A D | build.info | 3 $COMMON=hmac.c
|
/openssl/doc/man1/ |
H A D | openssl-speed.pod.in | 15 [B<-hmac> I<algo>] 64 aes-128-cbc-hmac-sha1, then B<-mb> will time multi-buffer operation. 82 =item B<-hmac> I<digest>
|
H A D | openssl-dgst.pod.in | 29 [B<-hmac> I<key>] 150 =item B<-hmac> I<key> 266 The L<openssl-mac(1)> command is preferred over the B<-hmac>, B<-mac> and
|
/openssl/ssl/statem/ |
H A D | extensions_srvr.c | 733 unsigned char hmac[SHA256_DIGEST_LENGTH]; in tls_parse_ctos_cookie() local 776 || EVP_DigestSign(hctx, hmac, &hmaclen, data, in tls_parse_ctos_cookie() 788 if (CRYPTO_memcmp(hmac, mdin, SHA256_DIGEST_LENGTH) != 0) { in tls_parse_ctos_cookie() 1781 unsigned char *hmac, *hmac2; in tls_construct_stoc_cookie() local 1848 || !WPACKET_reserve_bytes(pkt, SHA256_DIGEST_LENGTH, &hmac)) { in tls_construct_stoc_cookie() 1873 || EVP_DigestSign(hctx, hmac, &hmaclen, cookie, in tls_construct_stoc_cookie() 1885 || !ossl_assert(hmac == hmac2) in tls_construct_stoc_cookie() 1886 || !ossl_assert(cookie == hmac - totcookielen) in tls_construct_stoc_cookie()
|
/openssl/crypto/objects/ |
H A D | objects.txt | 18 identified-organization 6 1 5 5 8 1 1 : HMAC-MD5 : hmac-md5 19 identified-organization 6 1 5 5 8 1 2 : HMAC-SHA1 : hmac-sha1 633 id-alg 3 : id-alg-dh-sig-hmac-sha1 1091 nist_hashalgs 13 : id-hmacWithSHA3-224 : hmac-sha3-224 1092 nist_hashalgs 14 : id-hmacWithSHA3-256 : hmac-sha3-256 1093 nist_hashalgs 15 : id-hmacWithSHA3-384 : hmac-sha3-384 1680 : HMAC : hmac 1685 : RC4-HMAC-MD5 : rc4-hmac-md5 1686 : AES-128-CBC-HMAC-SHA1 : aes-128-cbc-hmac-sha1 1687 : AES-192-CBC-HMAC-SHA1 : aes-192-cbc-hmac-sha1 [all …]
|
/openssl/crypto/ |
H A D | build.info | 5 md2 md4 md5 sha mdc2 hmac ripemd whrlpool poly1305 \
|
/openssl/providers/ |
H A D | fips.module.sources | 236 crypto/hmac/hmac.c 237 crypto/hmac/hmac_local.h 491 include/openssl/hmac.h
|
H A D | fips-sources.checksums | 236 7a9af0b14f1463b36de0689bc434a318adcb7990bb23862bf1d2a0adf510583a crypto/hmac/hmac.c 237 df7ed80c3c2c0df4bf6a3d5379655d0ba9147d4f4e9f7509672bc9273f163bb8 crypto/hmac/hmac_local.h 491 47a088c98ad536ea99f2c6a9333e372507cb61b9bdffb930c586ed52f8f261eb include/openssl/hmac.h
|
/openssl/ |
H A D | .gitignore | 149 /demos/mac/hmac-sha512
|
/openssl/doc/man3/ |
H A D | HMAC.pod | 21 #include <openssl/hmac.h>
|
H A D | SSL_CTX_set_tlsext_ticket_key_cb.pod | 68 set using L<EVP_EncryptInit_ex(3)>. The hmac context and digest can be set using
|
/openssl/doc/designs/ |
H A D | fips_indicator.md | 334 … supports i.e. hash, kmac 128/256, hmac-hash. There are also currently no limitations on the diges…
|
/openssl/doc/man5/ |
H A D | fips_config.pod | 197 =item B<hmac-key-check>
|