| /f-stack/freebsd/crypto/aesni/ |
| H A D | aesni_ccm.c | 106 byte_ptr[0] = ((auth_len > 0) ? 1 : 0) * 64 | in cbc_mac_start() 113 if (auth_len != 0) { in cbc_mac_start() 128 KASSERT(auth_len < (1ULL << 32), in cbc_mac_start() 130 __FUNCTION__, auth_len)); in cbc_mac_start() 132 if (auth_len < ((1 << 16) - (1 << 8))) { in cbc_mac_start() 139 be16enc(&staging_block, auth_len); in cbc_mac_start() 141 } else if (auth_len < (1ULL << 32)) { in cbc_mac_start() 148 be32enc((char*)&staging_block + 2, auth_len); in cbc_mac_start() 158 copy_amt = MIN(auth_len, in cbc_mac_start() 166 while (auth_ptr < auth_data + auth_len) { in cbc_mac_start() [all …]
|
| /f-stack/freebsd/mips/cavium/cryptocteon/ |
| H A D | cavium_crypto.c | 327 int auth_off, int auth_len, in octo_aes_cbc_encrypt() argument 395 int auth_off, int auth_len, in octo_aes_cbc_decrypt() argument 466 int auth_off, int auth_len, in octo_null_sha1_encrypt() argument 498 while (auth_len > 0) { in octo_null_sha1_encrypt() 500 auth_len -= 8; in octo_null_sha1_encrypt() 587 (auth_len & 0x7) || in octo_aes_cbc_sha1_encrypt() 660 if (auth_len > 0) { in octo_aes_cbc_sha1_encrypt() 663 auth_len -= 16; in octo_aes_cbc_sha1_encrypt() 778 (auth_len & 0x7) || in octo_aes_cbc_sha1_decrypt() 840 if (auth_len > 0) { in octo_aes_cbc_sha1_decrypt() [all …]
|
| H A D | cryptocteonvar.h | 37 …*od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, i… 38 …*od, struct iovec *iov, size_t iovcnt, size_t iovlen, int auth_off, int auth_len, int crypt_off, i…
|
| H A D | cryptocteon.c | 255 int auth_off, auth_len, crypt_off, crypt_len; in cryptocteon_process() local 289 auth_len = crp->crp_aad_length + crp->crp_payload_length; in cryptocteon_process() 292 auth_len = crypt_len; in cryptocteon_process() 385 auth_off, auth_len, crypt_off, crypt_len, icv, ivp); in cryptocteon_process() 388 auth_off, auth_len, crypt_off, crypt_len, icv, ivp); in cryptocteon_process()
|
| /f-stack/freebsd/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | crypto_os.c | 204 size_t auth_len) in freebsd_crypt_uio_debug_log() argument 328 size_t auth_len) in freebsd_crypt_uio() argument 336 key, ivbuf, datalen, auth_len); in freebsd_crypt_uio() 360 crp->crp_aad_length = auth_len; in freebsd_crypt_uio() 361 crp->crp_payload_start = auth_len; in freebsd_crypt_uio() 498 size_t auth_len) in freebsd_crypt_uio() argument 508 key, ivbuf, datalen, auth_len); in freebsd_crypt_uio() 577 crp->crp_ilen = auth_len + datalen; in freebsd_crypt_uio() 582 auth_desc->crd_len = auth_len; in freebsd_crypt_uio() 591 enc_desc->crd_skip = auth_len; in freebsd_crypt_uio() [all …]
|
| H A D | zio_crypt.c | 407 uio_t *uio, uint_t auth_len) in zio_do_crypt_uio_opencrypto() argument 419 datalen, auth_len); in zio_do_crypt_uio_opencrypto() 1400 *auth_len = aad_len; in zio_crypt_init_uios_zil() 1414 uint_t *auth_len, boolean_t *no_crypt) in zio_crypt_init_uios_dnode() argument 1549 *auth_len = aad_len; in zio_crypt_init_uios_dnode() 1617 uint_t *auth_len, boolean_t *no_crypt) in zio_crypt_init_uios() argument 1634 auth_len, no_crypt); in zio_crypt_init_uios() 1640 *auth_len = 0; in zio_crypt_init_uios() 1677 uint_t enc_len, auth_len; in zio_do_crypt_data() local 1703 &authbuf, &auth_len, no_crypt); in zio_do_crypt_data() [all …]
|
| /f-stack/dpdk/drivers/crypto/qat/ |
| H A D | qat_sym.c | 158 uint32_t auth_len = 0, auth_ofs = 0; in qat_sym_build_request() local 299 auth_len = op->sym->auth.data.length >> 3; in qat_sym_build_request() 314 auth_len = op->sym->auth.data.length; in qat_sym_build_request() 330 auth_len = op->sym->auth.data.length; in qat_sym_build_request() 445 auth_len = op->sym->aead.data.length; in qat_sym_build_request() 514 auth_param->auth_len = auth_len; in qat_sym_build_request() 517 auth_param->auth_len = 0; in qat_sym_build_request() 535 auth_param->auth_len + alignment_adjustment; in qat_sym_build_request() 551 auth_param->auth_off + auth_param->auth_len; in qat_sym_build_request() 563 auth_param->auth_len + in qat_sym_build_request() [all …]
|
| H A D | qat_sym_hw_dp.c | 209 auth_param->auth_len = cipher_param->cipher_length; in enqueue_one_aead_job() 416 auth_param->auth_len = data_len - ofs.ofs.auth.head - in enqueue_one_auth_job() 535 int32_t cipher_len, auth_len; in enqueue_one_chain_job() local 543 auth_len = data_len - ofs.ofs.auth.head - ofs.ofs.auth.tail; in enqueue_one_chain_job() 545 if (unlikely(cipher_len < 0 || auth_len < 0)) in enqueue_one_chain_job() 553 auth_param->auth_len = auth_len; in enqueue_one_chain_job() 586 auth_param->auth_len; in enqueue_one_chain_job() 589 if ((auth_param->auth_off + auth_param->auth_len < in enqueue_one_chain_job() 597 auth_param->auth_len + in enqueue_one_chain_job() 602 auth_param->auth_len + in enqueue_one_chain_job()
|
| /f-stack/freebsd/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zio_crypt.c | 420 ccmp.ulAuthDataSize = auth_len; in zio_do_crypt_uio() 431 gcmp.ulAADLen = auth_len; in zio_do_crypt_uio() 1544 *auth_len = aad_len; in zio_crypt_init_uios_zil() 1569 *auth_len = 0; in zio_crypt_init_uios_zil() 1731 *auth_len = aad_len; in zio_crypt_init_uios_dnode() 1756 *auth_len = 0; in zio_crypt_init_uios_dnode() 1845 auth_len, no_crypt); in zio_crypt_init_uios() 1851 *auth_len = 0; in zio_crypt_init_uios() 1886 uint_t enc_len, auth_len; in zio_do_crypt_data() local 1959 &authbuf, &auth_len, no_crypt); in zio_do_crypt_data() [all …]
|
| /f-stack/dpdk/drivers/crypto/mvsam/ |
| H A D | rte_mrvl_pmd.c | 576 request->auth_len = request->cipher_len; in mrvl_request_prepare() 584 request->auth_len = op->sym->auth.data.length; in mrvl_request_prepare() 594 request->auth_icv_offset = request->auth_offset + request->auth_len; in mrvl_request_prepare()
|
| /f-stack/freebsd/netinet/ |
| H A D | sctp_input.c | 1408 int auth_skipped, uint32_t auth_offset, uint32_t auth_len, 1799 auth_skipped, auth_offset, auth_len, in sctp_process_cookie_existing() 2148 if (auth_len <= SCTP_CHUNK_BUFFER_SIZE) { in sctp_process_cookie_new() 2583 auth_skipped, auth_offset, auth_len, in sctp_handle_cookie_echo() 2592 ¬ification, auth_skipped, auth_offset, auth_len, in sctp_handle_cookie_echo() 4382 uint32_t auth_offset = 0, auth_len = 0; in sctp_process_control() local 4427 auth_len = ntohs(ch->chunk_length); in sctp_process_control() 4430 *offset += SCTP_SIZE32(auth_len); in sctp_process_control() 4485 if (auth_len <= SCTP_CHUNK_BUFFER_SIZE) { in sctp_process_control() 4993 auth_len, in sctp_process_control() [all …]
|
| /f-stack/dpdk/app/test/ |
| H A D | test_cryptodev.c | 197 auth_len = 0; in process_sym_raw_dp_op() local 245 auth_len = sop->auth.data.length; in process_sym_raw_dp_op() 247 auth_offset + auth_len); in process_sym_raw_dp_op() 253 auth_len = auth_len >> 3; in process_sym_raw_dp_op() 284 auth_len = sop->auth.data.length; in process_sym_raw_dp_op() 285 max_len = auth_len + auth_offset; in process_sym_raw_dp_op() 289 auth_len = auth_len >> 3; in process_sym_raw_dp_op() 2384 sym_op->auth.data.length = auth_len; in create_wireless_algo_hash_operation() 2449 sym_op->auth.data.length = auth_len; in create_wireless_cipher_hash_operation() 2546 sym_op->auth.data.length = auth_len; in create_wireless_algo_cipher_hash_operation() [all …]
|
| /f-stack/dpdk/drivers/common/qat/qat_adf/ |
| H A D | icp_qat_fw_la.h | 301 uint32_t auth_len; member
|