| /f-stack/freebsd/crypto/armv8/ |
| H A D | armv8_crypto.c | 403 crp->crp_payload_length, &allocated); in armv8_crypto_cipher_process() 421 crp->crp_payload_output_start, crp->crp_payload_length); in armv8_crypto_cipher_process() 427 outbuf = malloc(crp->crp_payload_length, in armv8_crypto_cipher_process() 459 if ((crp->crp_payload_length % AES_BLOCK_LEN) != 0) { in armv8_crypto_cipher_process() 465 crp->crp_payload_length, buf, buf, iv); in armv8_crypto_cipher_process() 468 crp->crp_payload_length, buf, iv); in armv8_crypto_cipher_process() 473 &ses->xts_schedule.aes_key, crp->crp_payload_length, buf, in armv8_crypto_cipher_process() 477 &ses->xts_schedule.aes_key, crp->crp_payload_length, buf, in armv8_crypto_cipher_process() 484 crp->crp_payload_length, in armv8_crypto_cipher_process() 494 crp->crp_payload_length, in armv8_crypto_cipher_process() [all …]
|
| /f-stack/freebsd/crypto/aesni/ |
| H A D | aesni.c | 699 crp->crp_payload_length, &allocated); in aesni_cipher_crypt() 727 outbuf = malloc(crp->crp_payload_length, in aesni_cipher_crypt() 754 crp->crp_payload_length, buf, outbuf, iv); in aesni_cipher_crypt() 757 memcpy(outbuf, buf, crp->crp_payload_length); in aesni_cipher_crypt() 759 crp->crp_payload_length, outbuf, iv); in aesni_cipher_crypt() 765 crp->crp_payload_length, buf, outbuf, iv); in aesni_cipher_crypt() 781 crp->crp_payload_length, crp->crp_aad_length, in aesni_cipher_crypt() 815 crp->crp_payload_length, outbuf); in aesni_cipher_crypt() 868 crp->crp_payload_length, in aesni_cipher_mac() 902 crp->crp_payload_length, in aesni_cipher_mac() [all …]
|
| /f-stack/freebsd/crypto/via/ |
| H A D | padlock_cipher.c | 173 crp->crp_payload_length); in padlock_cipher_alloc() 180 addr = malloc(crp->crp_payload_length + 16, M_PADLOCK, M_NOWAIT); in padlock_cipher_alloc() 224 crp->crp_payload_length, abuf); in padlock_cipher_process() 229 padlock_cbc(abuf, abuf, crp->crp_payload_length / AES_BLOCK_LEN, key, in padlock_cipher_process() 235 crp->crp_payload_length, abuf); in padlock_cipher_process()
|
| H A D | padlock.c | 236 if ((crp->crp_payload_length % AES_BLOCK_LEN) != 0) { in padlock_process()
|
| H A D | padlock_hash.c | 299 crp->crp_payload_length, axf->Update, &ctx); in padlock_authcompute()
|
| /f-stack/freebsd/opencrypto/ |
| H A D | cryptosoft.c | 123 if ((crp->crp_payload_length % exf->blocksize) != 0) in swcr_encdec() 166 resid = crp->crp_payload_length; in swcr_encdec() 353 crp->crp_payload_length, axf->Update, &ctx); in swcr_authcompute() 439 *blkp = htobe32(crp->crp_payload_length * 8); in swcr_gmac() 587 *blkp = htobe32(crp->crp_payload_length * 8); in swcr_gcm() 678 crp->crp_payload_length, axf->Update, &ctx); in swcr_ccm_cbc_mac() 926 if (result >= crp->crp_payload_length) { in swcr_compdec() 937 if (result < crp->crp_payload_length) { in swcr_compdec() 940 adj = result - crp->crp_payload_length; in swcr_compdec() 947 adj = crp->crp_payload_length - result; in swcr_compdec() [all …]
|
| H A D | ktls_ocf.c | 230 crp.crp_payload_length = sizeof(ad) + tls_comp_len; in ktls_ocf_tls_cbc_encrypt() 231 crp.crp_digest_start = crp.crp_payload_length; in ktls_ocf_tls_cbc_encrypt() 270 crp.crp_payload_length = uio.uio_resid; in ktls_ocf_tls_cbc_encrypt() 369 crp.crp_payload_length += iniov[i].iov_len; in ktls_ocf_tls12_gcm_encrypt() 371 uio.uio_resid = crp.crp_payload_length; in ktls_ocf_tls12_gcm_encrypt() 372 out_uio.uio_resid = crp.crp_payload_length; in ktls_ocf_tls12_gcm_encrypt() 440 crp.crp_payload_length = tls_comp_len; in ktls_ocf_tls12_gcm_decrypt() 491 crp.crp_payload_length += iniov[i].iov_len; in ktls_ocf_tls13_gcm_encrypt() 496 crp.crp_payload_length++; in ktls_ocf_tls13_gcm_encrypt() 497 crp.crp_digest_start = crp.crp_payload_length; in ktls_ocf_tls13_gcm_encrypt() [all …]
|
| H A D | cryptodev.c | 845 crp->crp_payload_length = cop->len; in cryptodev_op() 937 crp->crp_payload_length -= cse->ivsize; in cryptodev_op() 984 crp->crp_payload_length); in cryptodev_op() 1065 crp->crp_payload_length = caead->len; in cryptodev_aead() 1130 crp->crp_payload_length -= cse->ivsize; in cryptodev_aead() 1177 crp->crp_payload_length); in cryptodev_aead()
|
| H A D | cryptodev.h | 487 int crp_payload_length; member
|
| H A D | crypto.c | 1370 KASSERT(crp->crp_payload_start + crp->crp_payload_length <= in crp_sanity() 1379 crp->crp_payload_length <= olen, in crp_sanity()
|
| /f-stack/freebsd/mips/nlm/dev/sec/ |
| H A D | nlmsec.c | 618 cmd->cipherlen = crp->crp_payload_length; in xlp_sec_process() 634 cmd->hashlen = crp->crp_payload_length; in xlp_sec_process() 652 crp->crp_payload_length; in xlp_sec_process() 655 cmd->hashlen = crp->crp_payload_length; in xlp_sec_process() 663 cmd->cipherlen = crp->crp_payload_length; in xlp_sec_process()
|
| /f-stack/freebsd/mips/cavium/cryptocteon/ |
| H A D | cryptocteon.c | 270 if (crp->crp_aad_length % 8 != 0 || crp->crp_payload_length % 8 != 0) { in cryptocteon_process() 286 crypt_len = crp->crp_payload_length; in cryptocteon_process() 289 auth_len = crp->crp_aad_length + crp->crp_payload_length; in cryptocteon_process()
|
| /f-stack/freebsd/netipsec/ |
| H A D | xform_ipcomp.c | 249 crp->crp_payload_length = m->m_pkthdr.len - (skip + hlen); in ipcomp_input() 486 crp->crp_payload_length = ralen; in ipcomp_output() 570 if (crp->crp_payload_length > crp->crp_olen) { in ipcomp_output_cb() 638 __func__, crp->crp_payload_length, crp->crp_olen)); in ipcomp_output_cb()
|
| H A D | xform_ah.c | 614 crp->crp_payload_length = m->m_pkthdr.len; in ah_input() 973 crp->crp_payload_length = m->m_pkthdr.len; in ah_output()
|
| H A D | xform_esp.c | 425 crp->crp_payload_length = m->m_pkthdr.len - (skip + hlen + alen); in esp_input() 864 crp->crp_payload_length = m->m_pkthdr.len - (skip + hlen + alen); in esp_output()
|
| /f-stack/freebsd/crypto/ccp/ |
| H A D | ccp_hardware.c | 1285 crp->crp_payload_start, crp->crp_payload_length); in ccp_do_hmac() 1412 crp->crp_payload_length) { in ccp_do_xts() 1482 if (s->blkcipher.key_len == 0 || crp->crp_payload_length == 0) { in ccp_do_blkcipher() 1486 if ((crp->crp_payload_length % AES_BLOCK_LEN) != 0) { in ccp_do_blkcipher() 1488 crp->crp_payload_length); in ccp_do_blkcipher() 1533 crp->crp_payload_length) in ccp_do_blkcipher() 1538 __func__, crp->crp_payload_length); in ccp_do_blkcipher() 1602 crp->crp_payload_start, crp->crp_payload_length); in ccp_do_blkcipher() 1895 be64enc(&s->gmac.final_block[8], (uint64_t)crp->crp_payload_length * 8); in ccp_gcm() 1938 crp->crp_payload_start, crp->crp_payload_length); in ccp_gcm()
|
| /f-stack/freebsd/crypto/blake2/ |
| H A D | blake2_cryptodev.c | 371 crp->crp_payload_length, blake2b_applicator, &bctx.sb); in blake2_cipher_process() 388 crp->crp_payload_length, blake2s_applicator, &bctx.ss); in blake2_cipher_process()
|
| /f-stack/freebsd/crypto/openssl/ |
| H A D | ossl.c | 235 crp->crp_payload_length, axf->Update, &ctx); in ossl_process()
|
| /f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | crypto_os.c | 362 crp->crp_payload_length = datalen; in freebsd_crypt_uio()
|