/openbmc/linux/arch/arm64/crypto/ |
H A D | aes-glue.c | 134 u8 dg[AES_BLOCK_SIZE]; 465 u8 buf[AES_BLOCK_SIZE]; in xctr_encrypt() 510 u8 buf[AES_BLOCK_SIZE]; in ctr_encrypt() 712 .ivsize = AES_BLOCK_SIZE, 727 .ivsize = AES_BLOCK_SIZE, 743 .ivsize = AES_BLOCK_SIZE, 852 u8 key[AES_BLOCK_SIZE]; in xcbc_setkey() 900 in += AES_BLOCK_SIZE; in mac_do_update() 921 len %= AES_BLOCK_SIZE; in mac_update() 984 2 * AES_BLOCK_SIZE, [all …]
|
H A D | aes-neonbs-glue.c | 61 } __aligned(AES_BLOCK_SIZE); 226 dst += blocks * AES_BLOCK_SIZE; in ctr_encrypt() 227 src += blocks * AES_BLOCK_SIZE; in ctr_encrypt() 230 u8 buf[AES_BLOCK_SIZE]; in ctr_encrypt() 297 AES_BLOCK_SIZE) - 2; in __xts_crypt() 333 in += blocks * AES_BLOCK_SIZE; in __xts_crypt() 402 .walksize = 8 * AES_BLOCK_SIZE, 417 .ivsize = AES_BLOCK_SIZE, 431 .chunksize = AES_BLOCK_SIZE, 433 .ivsize = AES_BLOCK_SIZE, [all …]
|
H A D | aes-ce-ccm-glue.c | 80 memcpy(maciv, req->iv, AES_BLOCK_SIZE - l); in ccm_init_mac() 151 u8 __aligned(8) mac[AES_BLOCK_SIZE]; in ccm_encrypt() 152 u8 buf[AES_BLOCK_SIZE]; in ccm_encrypt() 161 memcpy(buf, req->iv, AES_BLOCK_SIZE); in ccm_encrypt() 171 u32 tail = walk.nbytes % AES_BLOCK_SIZE; in ccm_encrypt() 205 u8 __aligned(8) mac[AES_BLOCK_SIZE]; in ccm_decrypt() 206 u8 buf[AES_BLOCK_SIZE]; in ccm_decrypt() 215 memcpy(buf, req->iv, AES_BLOCK_SIZE); in ccm_decrypt() 268 .ivsize = AES_BLOCK_SIZE, 269 .chunksize = AES_BLOCK_SIZE, [all …]
|
H A D | ghash-ce-glue.c | 341 u8 buf[AES_BLOCK_SIZE]; in gcm_encrypt() 405 u8 otag[AES_BLOCK_SIZE]; in gcm_decrypt() 406 u8 buf[AES_BLOCK_SIZE]; in gcm_decrypt() 466 u8 iv[AES_BLOCK_SIZE]; in gcm_aes_encrypt() 474 u8 iv[AES_BLOCK_SIZE]; in gcm_aes_decrypt() 504 u8 iv[AES_BLOCK_SIZE]; in rfc4106_encrypt() 517 u8 iv[AES_BLOCK_SIZE]; in rfc4106_decrypt() 528 .chunksize = AES_BLOCK_SIZE, 529 .maxauthsize = AES_BLOCK_SIZE, 544 .chunksize = AES_BLOCK_SIZE, [all …]
|
/openbmc/linux/arch/arm/crypto/ |
H A D | aes-neonbs-glue.c | 49 u8 rk[13 * (8 * AES_BLOCK_SIZE) + 32] __aligned(AES_BLOCK_SIZE); 240 u8 buf[AES_BLOCK_SIZE]; in ctr_encrypt() 345 u8 buf[2 * AES_BLOCK_SIZE]; in __xts_crypt() 391 AES_BLOCK_SIZE, 0); in __xts_crypt() 405 AES_BLOCK_SIZE + tail, 1); in __xts_crypt() 447 .ivsize = AES_BLOCK_SIZE, 464 .chunksize = AES_BLOCK_SIZE, 466 .ivsize = AES_BLOCK_SIZE, 480 .chunksize = AES_BLOCK_SIZE, 482 .ivsize = AES_BLOCK_SIZE, [all …]
|
H A D | aes-ce-glue.c | 54 u8 b[AES_BLOCK_SIZE]; 462 AES_BLOCK_SIZE) - 2; in xts_encrypt() 534 AES_BLOCK_SIZE) - 2; in xts_decrypt() 613 .ivsize = AES_BLOCK_SIZE, 628 .ivsize = AES_BLOCK_SIZE, 629 .walksize = 2 * AES_BLOCK_SIZE, 644 .ivsize = AES_BLOCK_SIZE, 645 .chunksize = AES_BLOCK_SIZE, 659 .ivsize = AES_BLOCK_SIZE, 660 .chunksize = AES_BLOCK_SIZE, [all …]
|
/openbmc/qemu/crypto/ |
H A D | cipher-builtin.c.inc | 33 uint8_t iv[AES_BLOCK_SIZE]; 71 in += AES_BLOCK_SIZE; 72 out += AES_BLOCK_SIZE; 73 len -= AES_BLOCK_SIZE; 87 in += AES_BLOCK_SIZE; 88 out += AES_BLOCK_SIZE; 89 len -= AES_BLOCK_SIZE; 109 len -= AES_BLOCK_SIZE; 110 in += AES_BLOCK_SIZE; 111 out += AES_BLOCK_SIZE; [all …]
|
/openbmc/linux/net/mac80211/ |
H A D | fils_aead.c | 28 u8 d[AES_BLOCK_SIZE], tmp[AES_BLOCK_SIZE] = {}; in aes_s2v() 41 crypto_xor(d, tmp, AES_BLOCK_SIZE); in aes_s2v() 46 if (len[i] >= AES_BLOCK_SIZE) { in aes_s2v() 51 AES_BLOCK_SIZE); in aes_s2v() 71 u8 v[AES_BLOCK_SIZE]; in aes_siv_encrypt() 106 memcpy(out, v, AES_BLOCK_SIZE); in aes_siv_encrypt() 155 u8 frame_iv[AES_BLOCK_SIZE], iv[AES_BLOCK_SIZE]; in aes_siv_decrypt() 156 u8 check[AES_BLOCK_SIZE]; in aes_siv_decrypt() 263 skb_put(skb, AES_BLOCK_SIZE); in fils_encrypt_assoc_req() 317 if (crypt_len < AES_BLOCK_SIZE) { in fils_decrypt_assoc_resp() [all …]
|
/openbmc/linux/drivers/crypto/nx/ |
H A D | nx-aes-xcbc.c | 23 u8 state[AES_BLOCK_SIZE]; 25 u8 buffer[AES_BLOCK_SIZE]; 64 u8 keys[2][AES_BLOCK_SIZE]; in nx_xcbc_empty() 114 len = AES_BLOCK_SIZE; in nx_xcbc_empty() 118 if (len != AES_BLOCK_SIZE) in nx_xcbc_empty() 189 if (total <= AES_BLOCK_SIZE) { in nx_xcbc_update() 201 data_len = AES_BLOCK_SIZE; in nx_xcbc_update() 225 leftover = AES_BLOCK_SIZE; in nx_xcbc_update() 259 AES_BLOCK_SIZE); in nx_xcbc_update() 332 len = AES_BLOCK_SIZE; in nx_xcbc_final() [all …]
|
H A D | nx-aes-gcm.c | 112 if (nbytes <= AES_BLOCK_SIZE) { in nx_gca() 155 AES_BLOCK_SIZE); in nx_gca() 224 csbcpb->cpb.aes_gcm.out_pat_or_mac, AES_BLOCK_SIZE); in gmac() 226 csbcpb->cpb.aes_gcm.out_s0, AES_BLOCK_SIZE); in gmac() 248 char out[AES_BLOCK_SIZE]; in gcm_empty() 266 len = AES_BLOCK_SIZE; in gcm_empty() 272 if (len != AES_BLOCK_SIZE) in gcm_empty() 378 csbcpb->cpb.aes_gcm.out_pat_or_mac, AES_BLOCK_SIZE); in gcm_aes_nx_crypt() 380 csbcpb->cpb.aes_gcm.out_s0, AES_BLOCK_SIZE); in gcm_aes_nx_crypt() 482 .maxauthsize = AES_BLOCK_SIZE, [all …]
|
/openbmc/linux/arch/powerpc/crypto/ |
H A D | aes-spe-glue.c | 327 u8 b[2][AES_BLOCK_SIZE]; in ppc_xts_encrypt() 330 if (req->cryptlen < AES_BLOCK_SIZE) in ppc_xts_encrypt() 365 u8 b[3][AES_BLOCK_SIZE]; in ppc_xts_decrypt() 369 if (req->cryptlen < AES_BLOCK_SIZE) in ppc_xts_decrypt() 388 AES_BLOCK_SIZE); in ppc_xts_decrypt() 418 .cra_blocksize = AES_BLOCK_SIZE, 438 .base.cra_blocksize = AES_BLOCK_SIZE, 455 .ivsize = AES_BLOCK_SIZE, 468 .ivsize = AES_BLOCK_SIZE, 472 .chunksize = AES_BLOCK_SIZE, [all …]
|
/openbmc/linux/drivers/crypto/ccp/ |
H A D | ccp-crypto.h | 109 u8 k1[AES_BLOCK_SIZE]; 110 u8 k2[AES_BLOCK_SIZE]; 115 u8 iv[AES_BLOCK_SIZE]; 118 u8 tag[AES_BLOCK_SIZE]; 122 u8 rfc3686_iv[AES_BLOCK_SIZE]; 142 u8 iv[AES_BLOCK_SIZE]; 146 u8 buf[AES_BLOCK_SIZE]; 150 u8 pad[AES_BLOCK_SIZE]; 158 u8 iv[AES_BLOCK_SIZE]; 161 u8 buf[AES_BLOCK_SIZE]; [all …]
|
H A D | ccp-crypto-aes.c | 33 memcpy(req->iv, rctx->iv, AES_BLOCK_SIZE); in ccp_aes_complete() 79 (req->cryptlen & (AES_BLOCK_SIZE - 1))) in ccp_aes_crypt() 86 memcpy(rctx->iv, req->iv, AES_BLOCK_SIZE); in ccp_aes_crypt() 88 iv_len = AES_BLOCK_SIZE; in ccp_aes_crypt() 216 .base.cra_blocksize = AES_BLOCK_SIZE, 256 .blocksize = AES_BLOCK_SIZE, 265 .blocksize = AES_BLOCK_SIZE, 266 .ivsize = AES_BLOCK_SIZE, 275 .ivsize = AES_BLOCK_SIZE, 284 .ivsize = AES_BLOCK_SIZE, [all …]
|
/openbmc/linux/arch/s390/crypto/ |
H A D | aes_s390.c | 66 u8 buf[AES_BLOCK_SIZE]; 326 u8 iv[AES_BLOCK_SIZE]; in cbc_aes_crypt() 372 .ivsize = AES_BLOCK_SIZE, 523 .ivsize = AES_BLOCK_SIZE, 558 memcpy(ctrptr + AES_BLOCK_SIZE, ctrptr, AES_BLOCK_SIZE); in __ctrblk_init() 559 crypto_inc(ctrptr + AES_BLOCK_SIZE, AES_BLOCK_SIZE); in __ctrblk_init() 560 ctrptr += AES_BLOCK_SIZE; in __ctrblk_init() 581 n = AES_BLOCK_SIZE; in ctr_aes_crypt() 590 AES_BLOCK_SIZE); in ctr_aes_crypt() 624 .ivsize = AES_BLOCK_SIZE, [all …]
|
H A D | paes_s390.c | 335 u8 iv[AES_BLOCK_SIZE]; in cbc_paes_crypt() 390 .ivsize = AES_BLOCK_SIZE, 570 .ivsize = AES_BLOCK_SIZE, 636 memcpy(ctrptr + AES_BLOCK_SIZE, ctrptr, AES_BLOCK_SIZE); in __ctrblk_init() 637 crypto_inc(ctrptr + AES_BLOCK_SIZE, AES_BLOCK_SIZE); in __ctrblk_init() 638 ctrptr += AES_BLOCK_SIZE; in __ctrblk_init() 666 n = AES_BLOCK_SIZE; in ctr_paes_crypt() 675 AES_BLOCK_SIZE); in ctr_paes_crypt() 700 buf, AES_BLOCK_SIZE, in ctr_paes_crypt() 729 .ivsize = AES_BLOCK_SIZE, [all …]
|
/openbmc/linux/drivers/crypto/vmx/ |
H A D | aes_ctr.c | 73 u8 keystream[AES_BLOCK_SIZE]; in p8_aes_ctr_final() 87 crypto_inc(ctrblk, AES_BLOCK_SIZE); in p8_aes_ctr_final() 107 while ((nbytes = walk.nbytes) >= AES_BLOCK_SIZE) { in p8_aes_ctr_crypt() 113 nbytes / AES_BLOCK_SIZE, in p8_aes_ctr_crypt() 120 crypto_inc(walk.iv, AES_BLOCK_SIZE); in p8_aes_ctr_crypt() 121 } while ((nbytes -= AES_BLOCK_SIZE) >= AES_BLOCK_SIZE); in p8_aes_ctr_crypt() 147 .ivsize = AES_BLOCK_SIZE, 148 .chunksize = AES_BLOCK_SIZE,
|
H A D | aes_xts.c | 84 u8 tweak[AES_BLOCK_SIZE]; in p8_aes_xts_crypt() 87 if (req->cryptlen < AES_BLOCK_SIZE) in p8_aes_xts_crypt() 120 round_down(nbytes, AES_BLOCK_SIZE), in p8_aes_xts_crypt() 125 round_down(nbytes, AES_BLOCK_SIZE), in p8_aes_xts_crypt() 131 ret = skcipher_walk_done(&walk, nbytes % AES_BLOCK_SIZE); in p8_aes_xts_crypt() 152 .base.cra_blocksize = AES_BLOCK_SIZE, 161 .ivsize = AES_BLOCK_SIZE,
|
/openbmc/linux/drivers/crypto/ |
H A D | padlock-aes.c | 329 .cra_blocksize = AES_BLOCK_SIZE, 359 nbytes / AES_BLOCK_SIZE); in ecb_aes_encrypt() 360 nbytes &= AES_BLOCK_SIZE - 1; in ecb_aes_encrypt() 384 nbytes / AES_BLOCK_SIZE); in ecb_aes_decrypt() 385 nbytes &= AES_BLOCK_SIZE - 1; in ecb_aes_decrypt() 398 .base.cra_blocksize = AES_BLOCK_SIZE, 425 nbytes / AES_BLOCK_SIZE); in cbc_aes_encrypt() 427 nbytes &= AES_BLOCK_SIZE - 1; in cbc_aes_encrypt() 451 nbytes / AES_BLOCK_SIZE); in cbc_aes_decrypt() 452 nbytes &= AES_BLOCK_SIZE - 1; in cbc_aes_decrypt() [all …]
|
H A D | atmel-aes.c | 158 u8 lastc[AES_BLOCK_SIZE]; 879 case AES_BLOCK_SIZE: in atmel_aes_dma_start() 1319 .ivsize = AES_BLOCK_SIZE, 1333 .ivsize = AES_BLOCK_SIZE, 1347 .ivsize = AES_BLOCK_SIZE, 1361 .ivsize = AES_BLOCK_SIZE, 2231 .ivsize = AES_BLOCK_SIZE, 2247 .ivsize = AES_BLOCK_SIZE, 2263 .ivsize = AES_BLOCK_SIZE, 2279 .ivsize = AES_BLOCK_SIZE, [all …]
|
/openbmc/linux/arch/sparc/crypto/ |
H A D | aes_glue.c | 284 round_down(nbytes, AES_BLOCK_SIZE), in cbc_encrypt() 310 round_down(nbytes, AES_BLOCK_SIZE), in cbc_decrypt() 329 keystream, AES_BLOCK_SIZE); in ctr_crypt_final() 331 crypto_inc(ctrblk, AES_BLOCK_SIZE); in ctr_crypt_final() 350 round_down(nbytes, AES_BLOCK_SIZE), in ctr_crypt() 367 .cra_blocksize = AES_BLOCK_SIZE, 387 .base.cra_blocksize = AES_BLOCK_SIZE, 400 .base.cra_blocksize = AES_BLOCK_SIZE, 406 .ivsize = AES_BLOCK_SIZE, 420 .ivsize = AES_BLOCK_SIZE, [all …]
|
/openbmc/linux/arch/x86/crypto/ |
H A D | aesni-intel_glue.c | 306 nbytes &= AES_BLOCK_SIZE - 1; in ecb_encrypt() 328 nbytes &= AES_BLOCK_SIZE - 1; in ecb_decrypt() 350 nbytes &= AES_BLOCK_SIZE - 1; in cbc_encrypt() 513 u8 keystream[AES_BLOCK_SIZE]; in ctr_crypt() 562 u8 keystream[AES_BLOCK_SIZE]; in xctr_crypt() 1054 .ivsize = AES_BLOCK_SIZE, 1070 .ivsize = AES_BLOCK_SIZE, 1088 .ivsize = AES_BLOCK_SIZE, 1106 .ivsize = AES_BLOCK_SIZE, 1134 .ivsize = AES_BLOCK_SIZE, [all …]
|
/openbmc/linux/drivers/crypto/ccree/ |
H A D | cc_aead.h | 17 #define CCM_CONFIG_BUF_SIZE (AES_BLOCK_SIZE * 3) 52 u8 ctr_iv[AES_BLOCK_SIZE] ____cacheline_aligned; 55 u8 gcm_iv_inc1[AES_BLOCK_SIZE] ____cacheline_aligned; 56 u8 gcm_iv_inc2[AES_BLOCK_SIZE] ____cacheline_aligned; 57 u8 hkey[AES_BLOCK_SIZE] ____cacheline_aligned;
|
/openbmc/linux/drivers/crypto/starfive/ |
H A D | jh7110-aes.c | 210 u8 iv[AES_BLOCK_SIZE], b0[AES_BLOCK_SIZE]; in starfive_aes_ccm_init() 217 memcpy(b0, iv, AES_BLOCK_SIZE); in starfive_aes_ccm_init() 383 memset(block, 0, AES_BLOCK_SIZE); in starfive_aes_done_task() 451 total_len -= AES_BLOCK_SIZE; in starfive_aes_ccm_write_adata() 861 .cra_blocksize = AES_BLOCK_SIZE, 876 .base.ivsize = AES_BLOCK_SIZE, 882 .cra_blocksize = AES_BLOCK_SIZE, 897 .base.ivsize = AES_BLOCK_SIZE, 918 .base.ivsize = AES_BLOCK_SIZE, 939 .base.ivsize = AES_BLOCK_SIZE, [all …]
|
/openbmc/linux/drivers/crypto/intel/keembay/ |
H A D | keembay-ocs-aes-core.c | 94 u8 last_ct_blk[AES_BLOCK_SIZE]; 102 u8 in_tag[AES_BLOCK_SIZE]; 105 u8 out_tag[AES_BLOCK_SIZE]; 227 u8 tmp_buf1[AES_BLOCK_SIZE], tmp_buf2[AES_BLOCK_SIZE]; in sg_swap_blocks() 619 if (iv_size != AES_BLOCK_SIZE) in kmb_ocs_aead_validate_input() 1296 .base.ivsize = AES_BLOCK_SIZE, 1318 .base.ivsize = AES_BLOCK_SIZE, 1341 .base.ivsize = AES_BLOCK_SIZE, 1385 .base.ivsize = AES_BLOCK_SIZE, 1406 .base.ivsize = AES_BLOCK_SIZE, [all …]
|
/openbmc/linux/lib/crypto/ |
H A D | aesgcm.c | 49 u8 kin[AES_BLOCK_SIZE] = {}; in aesgcm_expandkey() 80 u8 buf[AES_BLOCK_SIZE]; in aesgcm_mac() 98 u8 buf[AES_BLOCK_SIZE]; in aesgcm_crypt() 111 crypto_xor_cpy(dst, src, buf, min(len, AES_BLOCK_SIZE)); in aesgcm_crypt() 113 dst += AES_BLOCK_SIZE; in aesgcm_crypt() 114 src += AES_BLOCK_SIZE; in aesgcm_crypt() 115 len -= AES_BLOCK_SIZE; in aesgcm_crypt() 170 u8 tagbuf[AES_BLOCK_SIZE]; in aesgcm_decrypt() 684 u8 tagbuf[AES_BLOCK_SIZE]; in libaesgcm_init()
|