Home
last modified time | relevance | path

Searched refs:mac_key (Results 1 – 11 of 11) sorted by relevance

/netbsd-src/crypto/external/bsd/openssl/dist/util/
H A Dmk-fipsmodule-cnf.pl14 my $mac_key;
18 GetOptions("key=s" => \$mac_key,
23 my $mac_keylen = length($mac_key);
35 = ( uc(hmac_sha256_hex($data, pack("H$mac_keylen", $mac_key))) =~ m/../g );
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/kdf/
H A Dtls1_prf.c182 EVP_PKEY *mac_key = NULL; in tls1_prf_P_hash() local
197 mac_key = EVP_PKEY_new_raw_private_key(EVP_PKEY_HMAC, NULL, sec, sec_len); in tls1_prf_P_hash()
198 if (mac_key == NULL) in tls1_prf_P_hash()
200 if (!EVP_DigestSignInit(ctx_init, NULL, md, NULL, mac_key)) in tls1_prf_P_hash()
239 EVP_PKEY_free(mac_key); in tls1_prf_P_hash()
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/evp/
H A Dpmeth_gn.c157 EVP_PKEY *mac_key = NULL; in EVP_PKEY_new_mac_key() local
165 if (EVP_PKEY_keygen(mac_ctx, &mac_key) <= 0) in EVP_PKEY_new_mac_key()
169 return mac_key; in EVP_PKEY_new_mac_key()
/netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/
H A Dt1_enc.c94 EVP_PKEY *mac_key; in tls1_change_cipher_state() local
256 mac_key = EVP_PKEY_new_mac_key(mac_type, NULL, mac_secret, in tls1_change_cipher_state()
258 if (mac_key == NULL in tls1_change_cipher_state()
259 || EVP_DigestSignInit(mac_ctx, NULL, m, NULL, mac_key) <= 0) { in tls1_change_cipher_state()
260 EVP_PKEY_free(mac_key); in tls1_change_cipher_state()
265 EVP_PKEY_free(mac_key); in tls1_change_cipher_state()
/netbsd-src/crypto/external/bsd/openssl/dist/ssl/
H A Dktls.c61 unsigned char *key, unsigned char *mac_key, in ktls_configure_crypto() argument
94 crypto_info->auth_key = mac_key; in ktls_configure_crypto()
163 unsigned char *key, unsigned char *mac_key, in ktls_configure_crypto() argument
H A Dt1_enc.c199 EVP_PKEY *mac_key; in tls1_change_cipher_state() local
366 mac_key = EVP_PKEY_new_raw_private_key_ex(s->ctx->libctx, "HMAC", in tls1_change_cipher_state()
375 mac_key = EVP_PKEY_new_mac_key(mac_type, NULL, mac_secret, in tls1_change_cipher_state()
378 if (mac_key == NULL in tls1_change_cipher_state()
380 s->ctx->libctx, s->ctx->propq, mac_key, in tls1_change_cipher_state()
382 EVP_PKEY_free(mac_key); in tls1_change_cipher_state()
386 EVP_PKEY_free(mac_key); in tls1_change_cipher_state()
H A Dssl_local.h2768 unsigned char *key, unsigned char *mac_key,
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/evp/
H A Dpmeth_gn.c320 EVP_PKEY *mac_key = NULL; in EVP_PKEY_new_mac_key() local
328 if (EVP_PKEY_keygen(mac_ctx, &mac_key) <= 0) in EVP_PKEY_new_mac_key()
332 return mac_key; in EVP_PKEY_new_mac_key()
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Dbad_dtls_test.c57 #define mac_key (key_block + 20) macro
304 HMAC_Init_ex(ctx, mac_key, 20, EVP_sha1(), NULL); in send_record()
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dbad_dtls_test.c59 #define mac_key (key_block + 20) macro
317 if (!EVP_MAC_init(ctx, mac_key, 20, params) in send_record()
H A Devp_test.c544 unsigned char *mac_key; member
607 OPENSSL_free(cdat->mac_key); in cipher_test_cleanup()
665 return parse_bin(value, &cdat->mac_key, &cdat->mac_key_len); in cipher_test_parse()
849 if (expected->mac_key != NULL in cipher_test_enc()
852 (void *)expected->mac_key) <= 0) { in cipher_test_enc()