| /freebsd-14.2/sys/crypto/openssl/ |
| H A D | ossl_aes.c | 95 if (crp->crp_cipher_key != NULL) { in ossl_aes_cbc() 97 error = cipher->set_encrypt_key(crp->crp_cipher_key, in ossl_aes_cbc() 100 error = cipher->set_decrypt_key(crp->crp_cipher_key, in ossl_aes_cbc() 184 if (crp->crp_cipher_key != NULL) { in ossl_aes_gcm() 186 error = s->cipher->set_encrypt_key(crp->crp_cipher_key, in ossl_aes_gcm() 190 error = s->cipher->set_decrypt_key(crp->crp_cipher_key, in ossl_aes_gcm()
|
| H A D | ossl_chacha20.c | 69 if (crp->crp_cipher_key != NULL) in ossl_chacha20() 70 cipher_key = crp->crp_cipher_key; in ossl_chacha20() 171 if (crp->crp_cipher_key != NULL) in ossl_chacha20_poly1305_encrypt() 172 cipher_key = crp->crp_cipher_key; in ossl_chacha20_poly1305_encrypt() 318 if (crp->crp_cipher_key != NULL) in ossl_chacha20_poly1305_decrypt() 319 cipher_key = crp->crp_cipher_key; in ossl_chacha20_poly1305_decrypt()
|
| /freebsd-14.2/sys/geom/eli/ |
| H A D | g_eli_privacy.c | 110 if (sc != NULL && crp->crp_cipher_key != NULL) in g_eli_crypto_read_done() 111 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_crypto_read_done() 163 if (crp->crp_cipher_key != NULL) in g_eli_crypto_write_done() 164 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_crypto_write_done() 340 crp->crp_cipher_key = g_eli_key_hold(sc, dstoff, in g_eli_crypto_run()
|
| H A D | g_eli_integrity.c | 170 if (crp->crp_cipher_key != NULL) in g_eli_auth_read_done() 171 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_auth_read_done() 312 if (crp->crp_cipher_key != NULL) in g_eli_auth_write_done() 313 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_auth_write_done() 565 crp->crp_cipher_key = g_eli_key_hold(sc, dstoff, in g_eli_auth_run()
|
| /freebsd-14.2/sys/dev/qat/qat/ |
| H A D | qat_ocf_utils.c | 128 cipherKey = crp->crp_cipher_key; in qat_ocf_handle_session_update() 152 if (crp->crp_cipher_key || crp->crp_auth_key || in qat_ocf_handle_session_update()
|
| H A D | qat_ocf.c | 265 if (crp->crp_cipher_key) in qat_ocf_session_init() 267 crp->crp_cipher_key; in qat_ocf_session_init()
|
| /freebsd-14.2/sys/crypto/via/ |
| H A D | padlock_cipher.c | 198 if (crp->crp_cipher_key != NULL) { in padlock_cipher_process() 199 padlock_cipher_key_setup(ses, crp->crp_cipher_key, in padlock_cipher_process()
|
| /freebsd-14.2/sys/crypto/armv8/ |
| H A D | armv8_crypto.c | 339 if (crp->crp_cipher_key != NULL) { in armv8_crypto_cipher_process() 340 armv8_crypto_cipher_setup(ses, csp, crp->crp_cipher_key, in armv8_crypto_cipher_process()
|
| /freebsd-14.2/sys/dev/wg/ |
| H A D | wg_crypto.c | 230 crp.crp_cipher_key = key; in chacha20poly1305_encrypt_mbuf() 253 crp.crp_cipher_key = key; in chacha20poly1305_decrypt_mbuf()
|
| /freebsd-14.2/sys/opencrypto/ |
| H A D | cryptosoft.c | 134 if (crp->crp_cipher_key != NULL) { in swcr_encdec() 135 error = exf->setkey(ctx, crp->crp_cipher_key, in swcr_encdec() 432 if (crp->crp_cipher_key != NULL) in swcr_gcm() 433 exf->setkey(ctx, crp->crp_cipher_key, in swcr_gcm() 770 if (crp->crp_cipher_key != NULL) in swcr_ccm() 771 exf->setkey(ctx, crp->crp_cipher_key, in swcr_ccm() 990 if (crp->crp_cipher_key != NULL) in swcr_chacha20_poly1305() 991 exf->setkey(ctx, crp->crp_cipher_key, in swcr_chacha20_poly1305()
|
| H A D | cryptodev.h | 463 const void *crp_cipher_key; /* New cipher key if non-NULL. */ member
|
| H A D | crypto.c | 1403 crp->crp_cipher_key != NULL, in crp_sanity()
|
| /freebsd-14.2/sys/dev/cxgbe/crypto/ |
| H A D | t4_crypto.c | 2560 if (crp->crp_cipher_key != NULL) in ccr_process() 2561 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process() 2576 if (crp->crp_cipher_key != NULL) in ccr_process() 2577 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process() 2588 if (crp->crp_cipher_key != NULL) { in ccr_process() 2589 t4_init_gmac_hash(crp->crp_cipher_key, in ccr_process() 2591 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process() 2609 if (crp->crp_cipher_key != NULL) { in ccr_process() 2610 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process()
|
| /freebsd-14.2/sys/dev/glxsb/ |
| H A D | glxsb.c | 662 if (crp->crp_cipher_key != NULL) in glxsb_crypto_encdec() 663 key = crp->crp_cipher_key; in glxsb_crypto_encdec()
|
| /freebsd-14.2/sys/dev/qat_c2xxx/ |
| H A D | qat_hw15.c | 558 if (crp != NULL && crp->crp_cipher_key != NULL) in qat_hw15_crypto_setup_cipher_config() 559 key = crp->crp_cipher_key; in qat_hw15_crypto_setup_cipher_config() 838 if (__predict_false(crp->crp_cipher_key != NULL || in qat_hw15_crypto_setup_req_params()
|
| /freebsd-14.2/sys/crypto/ccp/ |
| H A D | ccp.c | 558 if (crp->crp_cipher_key != NULL) in ccp_process() 559 ccp_aes_setkey(s, csp->csp_cipher_alg, crp->crp_cipher_key, in ccp_process()
|
| /freebsd-14.2/sys/crypto/aesni/ |
| H A D | aesni.c | 681 if (crp->crp_cipher_key != NULL) in aesni_cipher_crypt() 682 aesni_cipher_setup_common(ses, csp, crp->crp_cipher_key, in aesni_cipher_crypt()
|
| /freebsd-14.2/sys/dev/sec/ |
| H A D | sec.c | 1275 if (crp->crp_cipher_key != NULL) in sec_process() 1276 memcpy(ses->ss_key, crp->crp_cipher_key, csp->csp_cipher_klen); in sec_process()
|
| /freebsd-14.2/sys/dev/cesa/ |
| H A D | cesa.c | 1751 if (crp->crp_cipher_key != NULL) { in cesa_process() 1752 memcpy(cs->cs_key, crp->crp_cipher_key, in cesa_process()
|
| /freebsd-14.2/sys/dev/safe/ |
| H A D | safe.c | 813 if (crp->crp_cipher_key != NULL) in safe_process() 814 safe_setup_enckey(ses, crp->crp_cipher_key); in safe_process()
|
| /freebsd-14.2/sys/dev/hifn/ |
| H A D | hifn7751.c | 2427 if (crp->crp_cipher_key != NULL) in hifn_process() 2428 cmd->ck = crp->crp_cipher_key; in hifn_process()
|
| /freebsd-14.2/sys/dev/safexcel/ |
| H A D | safexcel.c | 1892 ckey = crp->crp_cipher_key; in safexcel_set_token()
|