Home
last modified time | relevance | path

Searched refs:mackey (Results 1 – 25 of 30) sorted by relevance

12

/freebsd/crypto/openssl/providers/implementations/keymgmt/
H A Dmac_legacy_kmgmt.c66 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 Dmacsignature.h28 void ossl_mac_key_free(MAC_KEY *mackey);
29 int ossl_mac_key_up_ref(MAC_KEY *mackey);
/freebsd/sys/opencrypto/
H A Dcryptodev.c90 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 Dcryptodev.h231 const void *mackey; member
248 const void *mackey; member
/freebsd/crypto/openssl/ssl/record/methods/
H A Dktls_meth.c289 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 Dtls1_meth.c22 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 Dssl3_meth.c20 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 Dtlsany_meth.c20 unsigned char *mackey, size_t mackeylen, in tls_any_set_crypto_state() argument
H A Ddtls_meth.c635 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 Dtls13_meth.c19 unsigned char *mackey, size_t mackeylen, in tls13_set_crypto_state() argument
H A Drecmethod_local.h102 unsigned char *mackey, size_t mackeylen,
/freebsd/tests/sys/opencrypto/
H A Dcryptodev.py176 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 Dcryptotest.py264 mackey=key, maclen=Tlen, ivlen=Nlen)
305 mackey=key, maclen=Tlen, ivlen=Nlen)
431 c = Crypto(mac=alg, mackey=key,
H A Dblake2_test.c104 sop.mackey = key; in create_session()
H A Dpoly1305_test.c318 sop.mackey = key; in create_session()
/freebsd/contrib/netbsd-tests/crypto/opencrypto/
H A Dh_xcbcmac.c87 cs.mackey = key; in main()
H A Dh_md5hmac.c157 cs.mackey = __UNCONST(&tests[i].key); in main()
H A Dh_sha1hmac.c167 cs.mackey = __UNCONST(&tests[i].key); in main()
H A Dh_gcm.c67 cs.mackey = key; in main()
/freebsd/crypto/openssl/include/internal/
H A Drecordmethod.h124 unsigned char *mackey,
/freebsd/crypto/openssl/ssl/statem/
H A Dextensions.c1462 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 Drecord.h179 unsigned char *mackey, size_t mackeylen,
H A Drec_layer_s3.c1248 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 Dtls13secretstest.c232 unsigned char *mackey, size_t mackeylen, in ssl_set_new_record_layer() argument
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_aes_cbc_hmac_sha256_hw.c680 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()

12