/freebsd/sys/crypto/openssl/ |
H A D | ossl_aes.c | 98 if (crp->crp_cipher_key != NULL) { in ossl_aes_cbc() 100 error = cipher->set_encrypt_key(crp->crp_cipher_key, in ossl_aes_cbc() 103 error = cipher->set_decrypt_key(crp->crp_cipher_key, in ossl_aes_cbc() 187 if (crp->crp_cipher_key != NULL) { in ossl_aes_gcm() 189 error = s->cipher->set_encrypt_key(crp->crp_cipher_key, in ossl_aes_gcm() 193 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/sys/geom/eli/ |
H A D | g_eli_privacy.c | 109 if (sc != NULL && crp->crp_cipher_key != NULL) in g_eli_crypto_read_done() 110 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_crypto_read_done() 162 if (crp->crp_cipher_key != NULL) in g_eli_crypto_write_done() 163 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_crypto_write_done() 339 crp->crp_cipher_key = g_eli_key_hold(sc, dstoff, in g_eli_crypto_run()
|
H A D | g_eli_integrity.c | 169 if (crp->crp_cipher_key != NULL) in g_eli_auth_read_done() 170 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_auth_read_done() 311 if (crp->crp_cipher_key != NULL) in g_eli_auth_write_done() 312 g_eli_key_drop(sc, __DECONST(void *, crp->crp_cipher_key)); in g_eli_auth_write_done() 564 crp->crp_cipher_key = g_eli_key_hold(sc, dstoff, in g_eli_auth_run()
|
/freebsd/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()
|
/freebsd/sys/crypto/via/ |
H A D | padlock_cipher.c | 197 if (crp->crp_cipher_key != NULL) { in padlock_cipher_process() 198 padlock_cipher_key_setup(ses, crp->crp_cipher_key, in padlock_cipher_process()
|
/freebsd/sys/crypto/armv8/ |
H A D | armv8_crypto.c | 338 if (crp->crp_cipher_key != NULL) { in armv8_crypto_cipher_process() 339 armv8_crypto_cipher_setup(ses, csp, crp->crp_cipher_key, in armv8_crypto_cipher_process()
|
/freebsd/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/sys/opencrypto/ |
H A D | cryptosoft.c | 133 if (crp->crp_cipher_key != NULL) { in swcr_encdec() 134 error = exf->setkey(ctx, crp->crp_cipher_key, in swcr_encdec() 431 if (crp->crp_cipher_key != NULL) in swcr_gcm() 432 exf->setkey(ctx, crp->crp_cipher_key, in swcr_gcm() 769 if (crp->crp_cipher_key != NULL) in swcr_ccm() 770 exf->setkey(ctx, crp->crp_cipher_key, in swcr_ccm() 989 if (crp->crp_cipher_key != NULL) in swcr_chacha20_poly1305() 990 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 | 1396 crp->crp_cipher_key != NULL, in crp_sanity()
|
/freebsd/sys/dev/cxgbe/crypto/ |
H A D | t4_crypto.c | 2559 if (crp->crp_cipher_key != NULL) in ccr_process() 2560 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process() 2575 if (crp->crp_cipher_key != NULL) in ccr_process() 2576 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process() 2587 if (crp->crp_cipher_key != NULL) { in ccr_process() 2588 t4_init_gmac_hash(crp->crp_cipher_key, in ccr_process() 2590 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process() 2608 if (crp->crp_cipher_key != NULL) { in ccr_process() 2609 ccr_aes_setkey(s, crp->crp_cipher_key, in ccr_process()
|
/freebsd/sys/dev/glxsb/ |
H A D | glxsb.c | 661 if (crp->crp_cipher_key != NULL) in glxsb_crypto_encdec() 662 key = crp->crp_cipher_key; in glxsb_crypto_encdec()
|
/freebsd/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/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/sys/crypto/aesni/ |
H A D | aesni.c | 680 if (crp->crp_cipher_key != NULL) in aesni_cipher_crypt() 681 aesni_cipher_setup_common(ses, csp, crp->crp_cipher_key, in aesni_cipher_crypt()
|
/freebsd/sys/dev/sec/ |
H A D | sec.c | 1274 if (crp->crp_cipher_key != NULL) in sec_process() 1275 memcpy(ses->ss_key, crp->crp_cipher_key, csp->csp_cipher_klen); in sec_process()
|
/freebsd/sys/dev/cesa/ |
H A D | cesa.c | 1730 if (crp->crp_cipher_key != NULL) { in cesa_process() 1731 memcpy(cs->cs_key, crp->crp_cipher_key, in cesa_process()
|
/freebsd/sys/dev/safe/ |
H A D | safe.c | 812 if (crp->crp_cipher_key != NULL) in safe_process() 813 safe_setup_enckey(ses, crp->crp_cipher_key); in safe_process()
|
/freebsd/sys/dev/hifn/ |
H A D | hifn7751.c | 2425 if (crp->crp_cipher_key != NULL) in hifn_process() 2426 cmd->ck = crp->crp_cipher_key; in hifn_process()
|
/freebsd/sys/dev/safexcel/ |
H A D | safexcel.c | 1891 ckey = crp->crp_cipher_key; in safexcel_set_token()
|