| /freebsd/crypto/openssl/providers/implementations/keymgmt/ |
| H A D | mac_legacy_kmgmt.c | 66 MAC_KEY *mackey; in ossl_mac_key_new() local 71 mackey = OPENSSL_zalloc(sizeof(*mackey)); in ossl_mac_key_new() 72 if (mackey == NULL) in ossl_mac_key_new() 75 if (!CRYPTO_NEW_REF(&mackey->refcnt, 1)) { in ossl_mac_key_new() 76 OPENSSL_free(mackey); in ossl_mac_key_new() 79 mackey->libctx = libctx; in ossl_mac_key_new() 80 mackey->cmac = cmac; in ossl_mac_key_new() 82 return mackey; in ossl_mac_key_new() 85 void ossl_mac_key_free(MAC_KEY *mackey) in ossl_mac_key_free() argument 89 if (mackey == NULL) in ossl_mac_key_free() [all …]
|
| /freebsd/crypto/openssl/providers/implementations/include/prov/ |
| H A D | macsignature.h | 28 void ossl_mac_key_free(MAC_KEY *mackey); 29 int ossl_mac_key_up_ref(MAC_KEY *mackey);
|
| /freebsd/sys/opencrypto/ |
| H A D | cryptodev.c | 90 uint32_t mackey; member 100 uint32_t mackey; member 147 PTRIN_CP(*from, *to, mackey); in session_op_from_32() 171 PTROUT_CP(*from, *to, mackey); in session_op_to_32() 274 void *mackey; member 339 void *mackey = NULL; in cse_create() local 445 mackey = malloc(csp.csp_auth_klen, M_CRYPTODEV, in cse_create() 447 error = copyin(sop->mackey, mackey, csp.csp_auth_klen); in cse_create() 454 csp.csp_auth_key = mackey; in cse_create() 500 cse->mackey = mackey; in cse_create() [all …]
|
| H A D | cryptodev.h | 231 const void *mackey; member 248 const void *mackey; member
|
| /freebsd/crypto/openssl/ssl/record/methods/ |
| H A D | ktls_meth.c | 289 unsigned char *mackey, size_t mackeylen, in ktls_set_crypto_state() argument 328 iv, ivlen, key, keylen, mackey, mackeylen)) in ktls_set_crypto_state() 403 size_t ivlen, unsigned char *mackey, size_t mackeylen, in ktls_new_record_layer() argument 426 ivlen, mackey, mackeylen, ciph, in ktls_new_record_layer()
|
| H A D | tls1_meth.c | 22 unsigned char *mackey, size_t mackeylen, in tls1_set_crypto_state() argument 65 rl->propq, mackey, in tls1_set_crypto_state() 73 mac_key = EVP_PKEY_new_mac_key(mactype, NULL, mackey, in tls1_set_crypto_state() 121 (int)mackeylen, mackey) in tls1_set_crypto_state()
|
| H A D | ssl3_meth.c | 20 unsigned char *mackey, size_t mackeylen, in ssl3_set_crypto_state() argument 81 memcpy(rl->mac_secret, mackey, mackeylen); in ssl3_set_crypto_state()
|
| H A D | tlsany_meth.c | 20 unsigned char *mackey, size_t mackeylen, in tls_any_set_crypto_state() argument
|
| H A D | dtls_meth.c | 635 size_t ivlen, unsigned char *mackey, size_t mackeylen, in dtls_new_record_layer() argument 687 ivlen, mackey, mackeylen, ciph, in dtls_new_record_layer()
|
| H A D | tls13_meth.c | 19 unsigned char *mackey, size_t mackeylen, in tls13_set_crypto_state() argument
|
| H A D | recmethod_local.h | 102 unsigned char *mackey, size_t mackeylen,
|
| /freebsd/tests/sys/opencrypto/ |
| H A D | cryptodev.py | 176 def __init__(self, cipher=0, key=None, mac=0, mackey=None, argument 192 if mackey is not None: 193 ses.mackeylen = len(mackey) 194 mk = array.array('B', mackey) 195 ses.mackey = mk.buffer_info()[0]
|
| H A D | cryptotest.py | 264 mackey=key, maclen=Tlen, ivlen=Nlen) 305 mackey=key, maclen=Tlen, ivlen=Nlen) 431 c = Crypto(mac=alg, mackey=key,
|
| H A D | blake2_test.c | 104 sop.mackey = key; in create_session()
|
| H A D | poly1305_test.c | 318 sop.mackey = key; in create_session()
|
| /freebsd/contrib/netbsd-tests/crypto/opencrypto/ |
| H A D | h_xcbcmac.c | 87 cs.mackey = key; in main()
|
| H A D | h_md5hmac.c | 157 cs.mackey = __UNCONST(&tests[i].key); in main()
|
| H A D | h_sha1hmac.c | 167 cs.mackey = __UNCONST(&tests[i].key); in main()
|
| H A D | h_gcm.c | 67 cs.mackey = key; in main()
|
| /freebsd/crypto/openssl/include/internal/ |
| H A D | recordmethod.h | 124 unsigned char *mackey,
|
| /freebsd/crypto/openssl/ssl/statem/ |
| H A D | extensions.c | 1462 EVP_PKEY *mackey = NULL; in tls_psk_do_binder() local 1595 mackey = EVP_PKEY_new_raw_private_key_ex(sctx->libctx, "HMAC", in tls_psk_do_binder() 1598 if (mackey == NULL) { in tls_psk_do_binder() 1608 sctx->propq, mackey, NULL) in tls_psk_do_binder() 1629 EVP_PKEY_free(mackey); in tls_psk_do_binder()
|
| /freebsd/crypto/openssl/ssl/record/ |
| H A D | record.h | 179 unsigned char *mackey, size_t mackeylen,
|
| H A D | rec_layer_s3.c | 1248 unsigned char *mackey, size_t mackeylen, in ssl_set_new_record_layer() argument 1424 ivlen, mackey, mackeylen, ciph, taglen, in ssl_set_new_record_layer()
|
| /freebsd/crypto/openssl/test/ |
| H A D | tls13secretstest.c | 232 unsigned char *mackey, size_t mackeylen, in ssl_set_new_record_layer() argument
|
| /freebsd/crypto/openssl/providers/implementations/ciphers/ |
| H A D | cipher_aes_cbc_hmac_sha256_hw.c | 680 const unsigned char *mackey, in aesni_cbc_hmac_sha256_set_mac_key() argument 691 sha256_update(&ctx->head, mackey, len); in aesni_cbc_hmac_sha256_set_mac_key() 694 memcpy(hmac_key, mackey, len); in aesni_cbc_hmac_sha256_set_mac_key()
|