Lines Matching refs:AES_BLOCK_SIZE
119 __be32 iv[AES_BLOCK_SIZE / sizeof(u32)];
132 __be32 j0[AES_BLOCK_SIZE / sizeof(u32)];
133 u32 tag[AES_BLOCK_SIZE / sizeof(u32)];
134 __be32 ghash[AES_BLOCK_SIZE / sizeof(u32)];
158 u8 lastc[AES_BLOCK_SIZE];
395 atmel_aes_read_n(dd, offset, value, SIZE_IN_WORDS(AES_BLOCK_SIZE)); in atmel_aes_read_block()
401 atmel_aes_write_n(dd, offset, value, SIZE_IN_WORDS(AES_BLOCK_SIZE)); in atmel_aes_write_block()
530 crypto_inc((u8 *)ctx->iv, AES_BLOCK_SIZE); in atmel_aes_ctr_update_req_iv()
613 dd->datalen -= AES_BLOCK_SIZE; in atmel_aes_cpu_transfer()
615 if (dd->datalen < AES_BLOCK_SIZE) in atmel_aes_cpu_transfer()
644 size_t padlen = atmel_aes_padlen(len, AES_BLOCK_SIZE); in atmel_aes_cpu_start()
885 case AES_BLOCK_SIZE: in atmel_aes_dma_start()
984 dd->ctx->block_size != AES_BLOCK_SIZE); in atmel_aes_start()
1020 ctx->blocks = DIV_ROUND_UP(datalen, AES_BLOCK_SIZE); in atmel_aes_ctr_transfer()
1029 datalen = AES_BLOCK_SIZE * (0x10000 - start); in atmel_aes_ctr_transfer()
1048 crypto_inc((u8 *)ctx->iv, AES_BLOCK_SIZE); in atmel_aes_ctr_transfer()
1072 memcpy(ctx->iv, req->iv, AES_BLOCK_SIZE); in atmel_aes_ctr_start()
1139 ctx->block_size = AES_BLOCK_SIZE; in atmel_aes_crypt()
1304 .base.cra_blocksize = AES_BLOCK_SIZE,
1317 .base.cra_blocksize = AES_BLOCK_SIZE,
1326 .ivsize = AES_BLOCK_SIZE,
1340 .ivsize = AES_BLOCK_SIZE,
1345 .base.cra_blocksize = AES_BLOCK_SIZE,
1354 .ivsize = AES_BLOCK_SIZE,
1368 .ivsize = AES_BLOCK_SIZE,
1382 .ivsize = AES_BLOCK_SIZE,
1396 .ivsize = AES_BLOCK_SIZE,
1410 .ivsize = AES_BLOCK_SIZE,
1426 .ivsize = AES_BLOCK_SIZE,
1494 dd->datalen -= AES_BLOCK_SIZE; in atmel_aes_gcm_ghash_finalize()
1535 padlen = atmel_aes_padlen(ivsize, AES_BLOCK_SIZE); in atmel_aes_gcm_start()
1536 datalen = ivsize + padlen + AES_BLOCK_SIZE; in atmel_aes_gcm_start()
1595 padlen = atmel_aes_padlen(req->assoclen, AES_BLOCK_SIZE); in atmel_aes_gcm_length()
1618 dd->datalen -= AES_BLOCK_SIZE; in atmel_aes_gcm_data()
1676 return atmel_aes_gcm_ghash(dd, (const u32 *)data, AES_BLOCK_SIZE, in atmel_aes_gcm_tag_init()
1734 ctx->block_size = AES_BLOCK_SIZE; in atmel_aes_gcm_crypt()
1799 .maxauthsize = AES_BLOCK_SIZE,
1850 u32 tweak[AES_BLOCK_SIZE / sizeof(u32)]; in atmel_aes_xts_process_data()
1851 static const __le32 one[AES_BLOCK_SIZE / sizeof(u32)] = {cpu_to_le32(1), }; in atmel_aes_xts_process_data()
1862 for (i = 0; i < AES_BLOCK_SIZE/2; ++i) in atmel_aes_xts_process_data()
1863 swap(tweak_bytes[i], tweak_bytes[AES_BLOCK_SIZE - 1 - i]); in atmel_aes_xts_process_data()
1946 .base.cra_blocksize = AES_BLOCK_SIZE,
1952 .ivsize = AES_BLOCK_SIZE,
2028 __be32 iv[AES_BLOCK_SIZE / sizeof(u32)]; in atmel_aes_authenc_transfer()
2218 ctx->block_size = AES_BLOCK_SIZE; in atmel_aes_authenc_crypt()
2241 .ivsize = AES_BLOCK_SIZE,
2247 .cra_blocksize = AES_BLOCK_SIZE,
2257 .ivsize = AES_BLOCK_SIZE,
2263 .cra_blocksize = AES_BLOCK_SIZE,
2273 .ivsize = AES_BLOCK_SIZE,
2279 .cra_blocksize = AES_BLOCK_SIZE,
2289 .ivsize = AES_BLOCK_SIZE,
2295 .cra_blocksize = AES_BLOCK_SIZE,
2305 .ivsize = AES_BLOCK_SIZE,
2311 .cra_blocksize = AES_BLOCK_SIZE,
2324 dd->buflen &= ~(AES_BLOCK_SIZE - 1); in atmel_aes_buff_init()