| /f-stack/freebsd/crypto/armv8/ |
| H A D | armv8_crypto_wrap.c | 102 len /= AES_BLOCK_LEN; in armv8_aes_encrypt_cbc() 110 from += AES_BLOCK_LEN; in armv8_aes_encrypt_cbc() 111 to += AES_BLOCK_LEN; in armv8_aes_encrypt_cbc() 122 len /= AES_BLOCK_LEN; in armv8_aes_decrypt_cbc() 130 buf += AES_BLOCK_LEN; in armv8_aes_decrypt_cbc() 248 uint8_t aes_counter[AES_BLOCK_LEN]; in armv8_aes_encrypt_gcm() 249 uint8_t block[AES_BLOCK_LEN]; in armv8_aes_encrypt_gcm() 253 bzero(&aes_counter, AES_BLOCK_LEN); in armv8_aes_encrypt_gcm() 279 trailer = len % AES_BLOCK_LEN; in armv8_aes_encrypt_gcm() 335 uint8_t block[AES_BLOCK_LEN]; in armv8_aes_decrypt_gcm() [all …]
|
| H A D | armv8_crypto.h | 36 #define AES_SCHED_LEN ((AES256_ROUNDS + 1) * AES_BLOCK_LEN) 68 uint8_t *, const uint8_t[static AES_BLOCK_LEN]); 70 const uint8_t[static AES_BLOCK_LEN]); 74 const uint8_t[static AES_BLOCK_LEN], 79 const uint8_t[static AES_BLOCK_LEN], 83 const uint8_t *, uint8_t *, const uint8_t[AES_BLOCK_LEN]); 85 const uint8_t *, uint8_t *, const uint8_t[AES_BLOCK_LEN]);
|
| H A D | armv8_crypto.c | 241 if (csp->csp_ivlen != AES_BLOCK_LEN) in armv8_crypto_probesession() 386 uint8_t iv[AES_BLOCK_LEN], tag[GMAC_DIGEST_LEN]; in armv8_crypto_cipher_process() 459 if ((crp->crp_payload_length % AES_BLOCK_LEN) != 0) { in armv8_crypto_cipher_process()
|
| /f-stack/freebsd/crypto/aesni/ |
| H A D | aesni_wrap.c | 63 len /= AES_BLOCK_LEN; in aesni_encrypt_cbc() 70 from += AES_BLOCK_LEN; in aesni_encrypt_cbc() 71 to += AES_BLOCK_LEN; in aesni_encrypt_cbc() 105 buf += AES_BLOCK_LEN; in aesni_decrypt_cbc() 143 from += AES_BLOCK_LEN; in aesni_encrypt_ecb() 144 to += AES_BLOCK_LEN; in aesni_encrypt_ecb() 150 const uint8_t from[AES_BLOCK_LEN], uint8_t to[AES_BLOCK_LEN]) in aesni_decrypt_ecb() argument 182 from += AES_BLOCK_LEN; in aesni_decrypt_ecb() 183 to += AES_BLOCK_LEN; in aesni_decrypt_ecb() 272 from += AES_BLOCK_LEN; in aesni_encrypt_icm() [all …]
|
| H A D | aesni.h | 49 #define AES_SCHED_LEN ((AES256_ROUNDS + 1) * AES_BLOCK_LEN) 82 const uint8_t iv[__min_size(AES_BLOCK_LEN)]); 84 size_t len, uint8_t *buf, const uint8_t iv[__min_size(AES_BLOCK_LEN)]); 91 const uint8_t iv[__min_size(AES_BLOCK_LEN)]); 96 const uint8_t iv[__min_size(AES_BLOCK_LEN)]); 100 const uint8_t iv[__min_size(AES_BLOCK_LEN)]);
|
| H A D | aesni.c | 249 if (csp->csp_ivlen != AES_BLOCK_LEN) in aesni_cipher_supported() 651 if ((crp->crp_payload_length % AES_BLOCK_LEN) != 0) in aesni_cipher_process() 693 uint8_t iv[AES_BLOCK_LEN], tag[GMAC_DIGEST_LEN]; in aesni_cipher_crypt()
|
| /f-stack/freebsd/net80211/ |
| H A D | ieee80211_crypto_ccmp.c | 57 #define AES_BLOCK_LEN 16 macro 347 uint8_t b0[AES_BLOCK_LEN], uint8_t aad[2 * AES_BLOCK_LEN], in ccmp_init_blocks() argument 348 uint8_t auth[AES_BLOCK_LEN], uint8_t s0[AES_BLOCK_LEN]) in ccmp_init_blocks() argument 430 xor_block(auth, &aad[AES_BLOCK_LEN], AES_BLOCK_LEN); in ccmp_init_blocks() 456 uint8_t aad[2 * AES_BLOCK_LEN], b0[AES_BLOCK_LEN], b[AES_BLOCK_LEN], in ccmp_encrypt() 457 e[AES_BLOCK_LEN], s0[AES_BLOCK_LEN]; in ccmp_encrypt() 479 pos += AES_BLOCK_LEN, space -= AES_BLOCK_LEN; in ccmp_encrypt() 480 data_len -= AES_BLOCK_LEN; in ccmp_encrypt() 601 uint8_t b0[AES_BLOCK_LEN], b[AES_BLOCK_LEN], a[AES_BLOCK_LEN]; in ccmp_decrypt() 602 uint8_t mic[AES_BLOCK_LEN]; in ccmp_decrypt() [all …]
|
| /f-stack/freebsd/contrib/openzfs/module/icp/algs/aes/ |
| H A D | aes_modes.c | 80 AES_BLOCK_LEN, aes_encrypt_block, aes_xor_block); in aes_encrypt_contiguous_blocks() 83 out, AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_encrypt_contiguous_blocks() 87 out, AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_encrypt_contiguous_blocks() 91 data, length, out, AES_BLOCK_LEN, aes_encrypt_block, in aes_encrypt_contiguous_blocks() 95 AES_BLOCK_LEN, aes_encrypt_block); in aes_encrypt_contiguous_blocks() 113 AES_BLOCK_LEN, aes_encrypt_block, aes_xor_block); in aes_decrypt_contiguous_blocks() 118 out, AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_decrypt_contiguous_blocks() 122 out, AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_decrypt_contiguous_blocks() 126 AES_BLOCK_LEN, aes_decrypt_block, aes_copy_block, in aes_decrypt_contiguous_blocks() 130 AES_BLOCK_LEN, aes_decrypt_block); in aes_decrypt_contiguous_blocks()
|
| H A D | aes_impl.c | 126 uint32_t buffer[AES_BLOCK_LEN / sizeof (uint32_t)]; in aes_encrypt_block() 135 bcopy(pt, &buffer, AES_BLOCK_LEN); in aes_encrypt_block() 146 bcopy(&buffer, ct, AES_BLOCK_LEN); in aes_encrypt_block() 173 uint32_t buffer[AES_BLOCK_LEN / sizeof (uint32_t)]; in aes_decrypt_block() 182 bcopy(ct, &buffer, AES_BLOCK_LEN); in aes_decrypt_block() 193 bcopy(&buffer, pt, AES_BLOCK_LEN); in aes_decrypt_block()
|
| /f-stack/freebsd/contrib/openzfs/module/icp/io/ |
| H A D | aes.c | 249 param_len = AES_BLOCK_LEN; in aes_check_mech_param() 465 AES_BLOCK_LEN, aes_encrypt_block, aes_xor_block); in aes_encrypt() 486 AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_encrypt() 580 AES_BLOCK_LEN, aes_encrypt_block, aes_copy_block, in aes_decrypt() 598 AES_BLOCK_LEN, aes_encrypt_block, aes_xor_block); in aes_decrypt() 638 out_len &= ~(AES_BLOCK_LEN - 1); in aes_encrypt_update() 713 out_len &= ~(AES_BLOCK_LEN - 1); in aes_decrypt_update() 1016 ciphertext, AES_BLOCK_LEN, aes_encrypt_block, in aes_encrypt_atomic() 1024 ciphertext, AES_BLOCK_LEN, aes_encrypt_block, in aes_encrypt_atomic() 1161 plaintext, AES_BLOCK_LEN, aes_encrypt_block, in aes_decrypt_atomic() [all …]
|
| /f-stack/freebsd/opencrypto/ |
| H A D | xform_aes_icm.c | 68 .native_blocksize = AES_BLOCK_LEN, 69 .ivsize = AES_BLOCK_LEN, 85 .native_blocksize = AES_BLOCK_LEN, 102 .native_blocksize = AES_BLOCK_LEN,
|
| H A D | ktls_ocf.c | 58 char iv[AES_BLOCK_LEN]; 250 pad = (unsigned)(AES_BLOCK_LEN - (tls_comp_len + os->mac_len + 1)) % in ktls_ocf_tls_cbc_encrypt() 251 AES_BLOCK_LEN; in ktls_ocf_tls_cbc_encrypt() 265 KASSERT(uio.uio_resid % AES_BLOCK_LEN == 0, in ktls_ocf_tls_cbc_encrypt() 274 memcpy(crp.crp_iv, os->iv, AES_BLOCK_LEN); in ktls_ocf_tls_cbc_encrypt() 276 memcpy(crp.crp_iv, hdr + 1, AES_BLOCK_LEN); in ktls_ocf_tls_cbc_encrypt() 303 KASSERT(os->mac_len + pad + 1 >= AES_BLOCK_LEN, in ktls_ocf_tls_cbc_encrypt() 305 memcpy(os->iv, trailer + os->mac_len + pad + 1 - AES_BLOCK_LEN, in ktls_ocf_tls_cbc_encrypt() 306 AES_BLOCK_LEN); in ktls_ocf_tls_cbc_encrypt() 635 csp.csp_ivlen = AES_BLOCK_LEN; in ktls_ocf_try() [all …]
|
| H A D | xform_enc.h | 43 #define AESICM_BLOCKSIZE AES_BLOCK_LEN
|
| H A D | cryptosoft.c | 390 uint32_t blkbuf[howmany(AES_BLOCK_LEN, sizeof(uint32_t))]; in swcr_gmac() 393 u_char iv[AES_BLOCK_LEN]; in swcr_gmac() 467 uint32_t blkbuf[howmany(AES_BLOCK_LEN, sizeof(uint32_t))]; in swcr_gcm() 470 u_char iv[AES_BLOCK_LEN]; in swcr_gcm() 651 u_char iv[AES_BLOCK_LEN]; in swcr_ccm_cbc_mac() 705 uint32_t blkbuf[howmany(AES_BLOCK_LEN, sizeof(uint32_t))]; in swcr_ccm() 708 u_char iv[AES_BLOCK_LEN]; in swcr_ccm() 723 blksz = AES_BLOCK_LEN; in swcr_ccm()
|
| H A D | xform_aes_xts.c | 66 .blocksize = AES_BLOCK_LEN,
|
| H A D | cryptodev.h | 115 #define AES_BLOCK_LEN 16 macro
|
| H A D | cryptodev.c | 1111 caead->ivlen == AES_BLOCK_LEN && in cryptodev_aead()
|
| /f-stack/freebsd/contrib/openzfs/module/icp/include/aes/ |
| H A D | aes_impl.h | 44 #define AES_BLOCK_LEN 16 /* bytes */ macro 46 #define RC_LENGTH (5 * ((AES_BLOCK_LEN) / 4 - 2))
|
| /f-stack/freebsd/crypto/via/ |
| H A D | padlock_cipher.c | 192 uint8_t iv[AES_BLOCK_LEN] __aligned(16); in padlock_cipher_process() 229 padlock_cbc(abuf, abuf, crp->crp_payload_length / AES_BLOCK_LEN, key, in padlock_cipher_process()
|
| H A D | padlock.c | 164 if (csp->csp_ivlen != AES_BLOCK_LEN) in padlock_probesession() 236 if ((crp->crp_payload_length % AES_BLOCK_LEN) != 0) { in padlock_process()
|
| /f-stack/freebsd/kern/ |
| H A D | uipc_ktls.c | 581 tls->params.tls_hlen += AES_BLOCK_LEN; in ktls_create_session() 583 tls->params.tls_tlen = AES_BLOCK_LEN + in ktls_create_session() 587 tls->params.tls_hlen += AES_BLOCK_LEN; in ktls_create_session() 588 tls->params.tls_tlen = AES_BLOCK_LEN + in ktls_create_session() 592 tls->params.tls_hlen += AES_BLOCK_LEN; in ktls_create_session() 593 tls->params.tls_tlen = AES_BLOCK_LEN + in ktls_create_session() 599 tls->params.tls_bs = AES_BLOCK_LEN; in ktls_create_session() 1589 arc4rand(tlshdr + 1, AES_BLOCK_LEN, 0); in ktls_frame()
|
| /f-stack/freebsd/crypto/ccp/ |
| H A D | ccp_hardware.c | 1366 csp->csp_ivlen < AES_BLOCK_LEN) in ccp_collect_iv() 1367 memset(&iv[csp->csp_ivlen], 0, AES_BLOCK_LEN - csp->csp_ivlen); in ccp_collect_iv() 1378 ccp_byteswap(iv, AES_BLOCK_LEN); in ccp_collect_iv() 1486 if ((crp->crp_payload_length % AES_BLOCK_LEN) != 0) { in ccp_do_blkcipher() 1498 if ((qp->cq_sg_crp->sg_segs[i].ss_len % AES_BLOCK_LEN) != 0) { in ccp_do_blkcipher() 1509 iv_len = AES_BLOCK_LEN; in ccp_do_blkcipher() 1953 if ((qp->cq_sg_ulptx->sg_segs[i].ss_len % AES_BLOCK_LEN) != 0) { in ccp_gcm() 1972 s->blkcipher.iv, AES_BLOCK_LEN); in ccp_gcm()
|
| H A D | ccp.c | 340 if (csp->csp_ivlen != AES_BLOCK_LEN) in ccp_cipher_supported() 344 if (csp->csp_ivlen != AES_BLOCK_LEN) in ccp_cipher_supported()
|