Home
last modified time | relevance | path

Searched refs:AES_BLOCK_SIZE (Results 26 – 50 of 112) sorted by relevance

12345

/openbmc/linux/arch/arm/crypto/
H A Dghash-ce-glue.c495 u8 buf[AES_BLOCK_SIZE]; in gcm_encrypt()
524 src += nblocks * AES_BLOCK_SIZE; in gcm_encrypt()
525 dst += nblocks * AES_BLOCK_SIZE; in gcm_encrypt()
586 u8 otag[AES_BLOCK_SIZE]; in gcm_decrypt()
587 u8 buf[AES_BLOCK_SIZE]; in gcm_decrypt()
620 src += nblocks * AES_BLOCK_SIZE; in gcm_decrypt()
621 dst += nblocks * AES_BLOCK_SIZE; in gcm_decrypt()
721 .chunksize = AES_BLOCK_SIZE,
722 .maxauthsize = AES_BLOCK_SIZE,
736 .chunksize = AES_BLOCK_SIZE,
[all …]
/openbmc/linux/drivers/crypto/intel/qat/qat_common/
H A Dqat_algs.c481 memcpy(key_reverse + AES_BLOCK_SIZE, key - AES_BLOCK_SIZE, in qat_alg_xts_reverse_key()
482 AES_BLOCK_SIZE); in qat_alg_xts_reverse_key()
1282 .cra_blocksize = AES_BLOCK_SIZE,
1291 .ivsize = AES_BLOCK_SIZE,
1299 .cra_blocksize = AES_BLOCK_SIZE,
1308 .ivsize = AES_BLOCK_SIZE,
1316 .cra_blocksize = AES_BLOCK_SIZE,
1325 .ivsize = AES_BLOCK_SIZE,
1346 .ivsize = AES_BLOCK_SIZE,
1364 .ivsize = AES_BLOCK_SIZE,
[all …]
/openbmc/linux/drivers/crypto/vmx/
H A Daes_cbc.c95 round_down(nbytes, AES_BLOCK_SIZE), in p8_aes_cbc_crypt()
102 ret = skcipher_walk_done(&walk, nbytes % AES_BLOCK_SIZE); in p8_aes_cbc_crypt()
123 .base.cra_blocksize = AES_BLOCK_SIZE,
132 .ivsize = AES_BLOCK_SIZE,
/openbmc/linux/drivers/crypto/nx/
H A Dnx-aes-ccm.c308 AES_BLOCK_SIZE); in generate_pat()
321 memcpy(out, result, AES_BLOCK_SIZE); in generate_pat()
381 memcpy(iv, csbcpb->cpb.aes_ccm.out_ctr, AES_BLOCK_SIZE); in ccm_nx_decrypt()
383 csbcpb->cpb.aes_ccm.out_pat_or_mac, AES_BLOCK_SIZE); in ccm_nx_decrypt()
385 csbcpb->cpb.aes_ccm.out_s0, AES_BLOCK_SIZE); in ccm_nx_decrypt()
450 memcpy(iv, csbcpb->cpb.aes_ccm.out_ctr, AES_BLOCK_SIZE); in ccm_nx_encrypt()
452 csbcpb->cpb.aes_ccm.out_pat_or_mac, AES_BLOCK_SIZE); in ccm_nx_encrypt()
454 csbcpb->cpb.aes_ccm.out_s0, AES_BLOCK_SIZE); in ccm_nx_encrypt()
537 .ivsize = AES_BLOCK_SIZE,
538 .maxauthsize = AES_BLOCK_SIZE,
[all …]
H A Dnx-aes-cbc.c89 memcpy(req->iv, csbcpb->cpb.aes_cbc.cv, AES_BLOCK_SIZE); in cbc_aes_nx_crypt()
115 .base.cra_blocksize = AES_BLOCK_SIZE,
123 .ivsize = AES_BLOCK_SIZE,
/openbmc/linux/drivers/crypto/cavium/nitrox/
H A Dnitrox_skcipher.c390 .cra_blocksize = AES_BLOCK_SIZE,
397 .ivsize = AES_BLOCK_SIZE,
409 .cra_blocksize = AES_BLOCK_SIZE,
416 .ivsize = AES_BLOCK_SIZE,
428 .cra_blocksize = AES_BLOCK_SIZE,
435 .ivsize = AES_BLOCK_SIZE,
447 .cra_blocksize = AES_BLOCK_SIZE,
454 .ivsize = AES_BLOCK_SIZE,
485 .cra_blocksize = AES_BLOCK_SIZE,
492 .ivsize = AES_BLOCK_SIZE,
/openbmc/linux/drivers/crypto/
H A Dgeode-aes.c173 geode_aes_crypt(tctx, in, out, AES_BLOCK_SIZE, NULL, in geode_encrypt()
188 geode_aes_crypt(tctx, in, out, AES_BLOCK_SIZE, NULL, in geode_decrypt()
224 .cra_blocksize = AES_BLOCK_SIZE,
286 round_down(nbytes, AES_BLOCK_SIZE), in geode_skcipher_crypt()
288 err = skcipher_walk_done(&walk, nbytes % AES_BLOCK_SIZE); in geode_skcipher_crypt()
321 .base.cra_blocksize = AES_BLOCK_SIZE,
332 .ivsize = AES_BLOCK_SIZE,
339 .base.cra_blocksize = AES_BLOCK_SIZE,
H A Domap-aes-gcm.c51 alen = ALIGN(dd->assoc_len, AES_BLOCK_SIZE); in omap_aes_gcm_done_task()
52 clen = ALIGN(dd->total, AES_BLOCK_SIZE); in omap_aes_gcm_done_task()
110 alen = ALIGN(assoclen, AES_BLOCK_SIZE); in omap_aes_gcm_copy_buffers()
111 clen = ALIGN(cryptlen, AES_BLOCK_SIZE); in omap_aes_gcm_copy_buffers()
121 AES_BLOCK_SIZE, dd->in_sgl, in omap_aes_gcm_copy_buffers()
138 AES_BLOCK_SIZE, &dd->in_sgl[nsg], in omap_aes_gcm_copy_buffers()
164 AES_BLOCK_SIZE, &dd->out_sgl, in omap_aes_gcm_copy_buffers()
/openbmc/linux/drivers/crypto/ccp/
H A Dccp-crypto-aes-xts.c70 memcpy(req->iv, rctx->iv, AES_BLOCK_SIZE); in ccp_aes_xts_complete()
164 memcpy(rctx->iv, req->iv, AES_BLOCK_SIZE); in ccp_aes_xts_crypt()
165 sg_init_one(&rctx->iv_sg, rctx->iv, AES_BLOCK_SIZE); in ccp_aes_xts_crypt()
177 rctx->cmd.u.xts.iv_len = AES_BLOCK_SIZE; in ccp_aes_xts_crypt()
249 alg->base.cra_blocksize = AES_BLOCK_SIZE; in ccp_register_aes_xts_alg()
260 alg->ivsize = AES_BLOCK_SIZE; in ccp_register_aes_xts_alg()
H A Dccp-crypto-aes-galois.c108 rctx->iv[AES_BLOCK_SIZE - 1] = 1; in ccp_aes_gcm_crypt()
112 iv_len = AES_BLOCK_SIZE; in ccp_aes_gcm_crypt()
172 .maxauthsize = AES_BLOCK_SIZE,
178 .cra_blocksize = AES_BLOCK_SIZE,
203 .ivsize = AES_BLOCK_SIZE,
H A Dccp-ops.c490 if (aes->src_len & (AES_BLOCK_SIZE - 1)) in ccp_run_aes_cmac_cmd()
493 if (aes->iv_len != AES_BLOCK_SIZE) in ccp_run_aes_cmac_cmd()
500 if (aes->cmac_key_len != AES_BLOCK_SIZE) in ccp_run_aes_cmac_cmd()
566 AES_BLOCK_SIZE, DMA_TO_DEVICE); in ccp_run_aes_cmac_cmd()
750 AES_BLOCK_SIZE, in ccp_run_aes_gcm_cmd()
780 AES_BLOCK_SIZE, in ccp_run_aes_gcm_cmd()
861 op.src.u.dma.length = AES_BLOCK_SIZE; in ccp_run_aes_gcm_cmd()
864 op.dst.u.dma.length = AES_BLOCK_SIZE; in ccp_run_aes_gcm_cmd()
940 if (aes->iv_len != AES_BLOCK_SIZE) in ccp_run_aes_cmd()
1023 AES_BLOCK_SIZE, in ccp_run_aes_cmd()
[all …]
/openbmc/linux/drivers/crypto/ccree/
H A Dcc_cipher.c115 if (size >= AES_BLOCK_SIZE) in validate_data_size()
1020 .ivsize = AES_BLOCK_SIZE,
1038 .ivsize = AES_BLOCK_SIZE,
1074 .ivsize = AES_BLOCK_SIZE,
1092 .ivsize = AES_BLOCK_SIZE,
1110 .ivsize = AES_BLOCK_SIZE,
1128 .ivsize = AES_BLOCK_SIZE,
1150 .ivsize = AES_BLOCK_SIZE,
1167 .ivsize = AES_BLOCK_SIZE,
1201 .ivsize = AES_BLOCK_SIZE,
[all …]
H A Dcc_aead.c1468 AES_BLOCK_SIZE, NS_BIT); in cc_ccm()
1507 AES_BLOCK_SIZE, NS_BIT); in cc_ccm()
1649 AES_BLOCK_SIZE, NS_BIT); in cc_set_ghash_desc()
1746 AES_BLOCK_SIZE, NS_BIT); in cc_proc_gcm_result()
2301 .blocksize = AES_BLOCK_SIZE,
2309 .ivsize = AES_BLOCK_SIZE,
2341 .blocksize = AES_BLOCK_SIZE,
2349 .ivsize = AES_BLOCK_SIZE,
2381 .blocksize = AES_BLOCK_SIZE,
2389 .ivsize = AES_BLOCK_SIZE,
[all …]
H A Dcc_hash.h31 u8 state[AES_BLOCK_SIZE];
33 u8 buffer[AES_BLOCK_SIZE];
H A Dcc_buffer_mgr.c309 (AES_BLOCK_SIZE + areq_ctx->ccm_hdr_size), in cc_set_aead_conf_buf()
472 AES_BLOCK_SIZE, DMA_BIDIRECTIONAL); in cc_unmap_aead_request()
477 AES_BLOCK_SIZE, DMA_TO_DEVICE); in cc_unmap_aead_request()
482 AES_BLOCK_SIZE, DMA_TO_DEVICE); in cc_unmap_aead_request()
487 AES_BLOCK_SIZE, DMA_TO_DEVICE); in cc_unmap_aead_request()
494 AES_BLOCK_SIZE, DMA_TO_DEVICE); in cc_unmap_aead_request()
995 AES_BLOCK_SIZE, addr); in cc_map_aead_request()
1013 AES_BLOCK_SIZE, areq_ctx->hkey); in cc_map_aead_request()
1020 AES_BLOCK_SIZE, DMA_TO_DEVICE); in cc_map_aead_request()
1030 AES_BLOCK_SIZE, DMA_TO_DEVICE); in cc_map_aead_request()
[all …]
/openbmc/linux/drivers/crypto/caam/
H A Dcaamalg_qi.c1494 .ivsize = AES_BLOCK_SIZE,
1542 .ivsize = AES_BLOCK_SIZE,
1584 .ivsize = AES_BLOCK_SIZE,
1662 .ivsize = AES_BLOCK_SIZE,
1684 .ivsize = AES_BLOCK_SIZE,
1706 .ivsize = AES_BLOCK_SIZE,
1728 .ivsize = AES_BLOCK_SIZE,
1750 .ivsize = AES_BLOCK_SIZE,
1772 .ivsize = AES_BLOCK_SIZE,
1794 .ivsize = AES_BLOCK_SIZE,
[all …]
H A Dcaamalg.c1900 .ivsize = AES_BLOCK_SIZE,
1957 .ivsize = AES_BLOCK_SIZE,
2005 .ivsize = AES_BLOCK_SIZE,
2293 .ivsize = AES_BLOCK_SIZE,
2318 .ivsize = AES_BLOCK_SIZE,
2343 .ivsize = AES_BLOCK_SIZE,
2368 .ivsize = AES_BLOCK_SIZE,
2393 .ivsize = AES_BLOCK_SIZE,
2418 .ivsize = AES_BLOCK_SIZE,
2443 .ivsize = AES_BLOCK_SIZE,
[all …]
/openbmc/linux/drivers/crypto/stm32/
H A Dstm32-cryp.c646 iv[AES_BLOCK_SIZE - 1] = 1; in stm32_cryp_ccm_init()
650 memcpy(b0, iv, AES_BLOCK_SIZE); in stm32_cryp_ccm_init()
965 if (req->cryptlen % AES_BLOCK_SIZE) in stm32_cryp_aes_ecb_encrypt()
976 if (req->cryptlen % AES_BLOCK_SIZE) in stm32_cryp_aes_ecb_decrypt()
987 if (req->cryptlen % AES_BLOCK_SIZE) in stm32_cryp_aes_cbc_encrypt()
998 if (req->cryptlen % AES_BLOCK_SIZE) in stm32_cryp_aes_cbc_decrypt()
1720 .ivsize = AES_BLOCK_SIZE,
1743 .ivsize = AES_BLOCK_SIZE,
1852 .base.maxauthsize = AES_BLOCK_SIZE,
1874 .base.ivsize = AES_BLOCK_SIZE,
[all …]
/openbmc/linux/net/ceph/
H A Dcrypto.c225 char iv[AES_BLOCK_SIZE] __aligned(8); in ceph_aes_crypt()
226 int pad_byte = AES_BLOCK_SIZE - (in_len & (AES_BLOCK_SIZE - 1)); in ceph_aes_crypt()
237 memcpy(iv, aes_iv, AES_BLOCK_SIZE); in ceph_aes_crypt()
267 if (pad_byte > 0 && pad_byte <= AES_BLOCK_SIZE && in ceph_aes_crypt()
/openbmc/linux/drivers/crypto/cavium/cpt/
H A Dcptvf_algs.c344 .base.cra_blocksize = AES_BLOCK_SIZE,
352 .ivsize = AES_BLOCK_SIZE,
362 .base.cra_blocksize = AES_BLOCK_SIZE,
370 .ivsize = AES_BLOCK_SIZE,
380 .base.cra_blocksize = AES_BLOCK_SIZE,
397 .base.cra_blocksize = AES_BLOCK_SIZE,
405 .ivsize = AES_BLOCK_SIZE,
/openbmc/linux/drivers/crypto/virtio/
H A Dvirtio_crypto_skcipher_algs.c427 req->cryptlen - AES_BLOCK_SIZE, in __virtio_crypto_skcipher_do_req()
428 AES_BLOCK_SIZE, 0); in __virtio_crypto_skcipher_do_req()
479 if (req->cryptlen % AES_BLOCK_SIZE) in virtio_crypto_skcipher_encrypt()
504 if (req->cryptlen % AES_BLOCK_SIZE) in virtio_crypto_skcipher_decrypt()
565 req->cryptlen - AES_BLOCK_SIZE, in virtio_crypto_skcipher_finalize_req()
566 AES_BLOCK_SIZE, 0); in virtio_crypto_skcipher_finalize_req()
583 .base.cra_blocksize = AES_BLOCK_SIZE,
593 .ivsize = AES_BLOCK_SIZE,
/openbmc/linux/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c363 extra = AES_BLOCK_SIZE - cache_len; in safexcel_ahash_send_req()
389 cache_len = AES_BLOCK_SIZE; in safexcel_ahash_send_req()
1976 req->len = AES_BLOCK_SIZE; in safexcel_cbcmac_init()
1977 req->processed = AES_BLOCK_SIZE; in safexcel_cbcmac_init()
1981 req->digest_sz = AES_BLOCK_SIZE; in safexcel_cbcmac_init()
1982 req->block_sz = AES_BLOCK_SIZE; in safexcel_cbcmac_init()
2037 .digestsize = AES_BLOCK_SIZE,
2120 .digestsize = AES_BLOCK_SIZE,
2129 .cra_blocksize = AES_BLOCK_SIZE,
2158 memset(consts, 0, AES_BLOCK_SIZE); in safexcel_cmac_setkey()
[all …]
/openbmc/linux/drivers/crypto/qce/
H A Dskcipher.c365 .blocksize = AES_BLOCK_SIZE,
374 .blocksize = AES_BLOCK_SIZE,
375 .ivsize = AES_BLOCK_SIZE,
384 .chunksize = AES_BLOCK_SIZE,
385 .ivsize = AES_BLOCK_SIZE,
393 .blocksize = AES_BLOCK_SIZE,
394 .ivsize = AES_BLOCK_SIZE,
/openbmc/linux/drivers/crypto/hisilicon/sec2/
H A Dsec_crypto.c2021 if (unlikely(cryptlen < AES_BLOCK_SIZE)) { in sec_skcipher_cryptlen_check()
2181 AES_MAX_KEY_SIZE, AES_BLOCK_SIZE, 0),
2186 AES_MAX_KEY_SIZE, AES_BLOCK_SIZE, AES_BLOCK_SIZE),
2196 SEC_XTS_MAX_KEY_SIZE, AES_BLOCK_SIZE, AES_BLOCK_SIZE),
2211 AES_MIN_KEY_SIZE, AES_BLOCK_SIZE, AES_BLOCK_SIZE),
2221 SEC_XTS_MIN_KEY_SIZE, AES_BLOCK_SIZE, AES_BLOCK_SIZE),
2442 AES_BLOCK_SIZE),
2448 AES_BLOCK_SIZE),
2454 AES_BLOCK_SIZE),
2460 AES_BLOCK_SIZE),
[all …]
/openbmc/linux/net/mac80211/
H A Daes_gmac.c21 u8 *zero, *__aad, iv[AES_BLOCK_SIZE]; in ieee80211_aes_gmac()
57 iv[AES_BLOCK_SIZE - 1] = 0x01; in ieee80211_aes_gmac()

12345