Lines Matching refs:AES_BLOCK_SIZE

120 	u32			iv[AES_BLOCK_SIZE / sizeof(u32)];
132 u32 j0[AES_BLOCK_SIZE / sizeof(u32)];
133 u32 tag[AES_BLOCK_SIZE / sizeof(u32)];
134 u32 ghash[AES_BLOCK_SIZE / sizeof(u32)];
157 u32 lastc[AES_BLOCK_SIZE / sizeof(u32)];
393 atmel_aes_read_n(dd, offset, value, SIZE_IN_WORDS(AES_BLOCK_SIZE)); in atmel_aes_read_block()
399 atmel_aes_write_n(dd, offset, value, SIZE_IN_WORDS(AES_BLOCK_SIZE)); in atmel_aes_write_block()
581 dd->datalen -= AES_BLOCK_SIZE; in atmel_aes_cpu_transfer()
583 if (dd->datalen < AES_BLOCK_SIZE) in atmel_aes_cpu_transfer()
612 size_t padlen = atmel_aes_padlen(len, AES_BLOCK_SIZE); in atmel_aes_cpu_start()
875 case AES_BLOCK_SIZE: in atmel_aes_dma_start()
982 dd->ctx->block_size != AES_BLOCK_SIZE); in atmel_aes_start()
1022 blocks = DIV_ROUND_UP(datalen, AES_BLOCK_SIZE); in atmel_aes_ctr_transfer()
1031 datalen = AES_BLOCK_SIZE * -start; in atmel_aes_ctr_transfer()
1041 datalen = AES_BLOCK_SIZE * (0x10000-start); in atmel_aes_ctr_transfer()
1060 crypto_inc((u8 *)ctx->iv, AES_BLOCK_SIZE); in atmel_aes_ctr_transfer()
1084 memcpy(ctx->iv, req->info, AES_BLOCK_SIZE); in atmel_aes_ctr_start()
1115 ctx->block_size = AES_BLOCK_SIZE; in atmel_aes_crypt()
1271 .cra_blocksize = AES_BLOCK_SIZE,
1290 .cra_blocksize = AES_BLOCK_SIZE,
1299 .ivsize = AES_BLOCK_SIZE,
1310 .cra_blocksize = AES_BLOCK_SIZE,
1319 .ivsize = AES_BLOCK_SIZE,
1330 .cra_blocksize = AES_BLOCK_SIZE,
1339 .ivsize = AES_BLOCK_SIZE,
1359 .ivsize = AES_BLOCK_SIZE,
1379 .ivsize = AES_BLOCK_SIZE,
1399 .ivsize = AES_BLOCK_SIZE,
1419 .ivsize = AES_BLOCK_SIZE,
1441 .ivsize = AES_BLOCK_SIZE,
1513 dd->datalen -= AES_BLOCK_SIZE; in atmel_aes_gcm_ghash_finalize()
1554 padlen = atmel_aes_padlen(ivsize, AES_BLOCK_SIZE); in atmel_aes_gcm_start()
1555 datalen = ivsize + padlen + AES_BLOCK_SIZE; in atmel_aes_gcm_start()
1614 padlen = atmel_aes_padlen(req->assoclen, AES_BLOCK_SIZE); in atmel_aes_gcm_length()
1637 dd->datalen -= AES_BLOCK_SIZE; in atmel_aes_gcm_data()
1695 return atmel_aes_gcm_ghash(dd, (const u32 *)data, AES_BLOCK_SIZE, in atmel_aes_gcm_tag_init()
1754 ctx->block_size = AES_BLOCK_SIZE; in atmel_aes_gcm_crypt()
1832 .maxauthsize = AES_BLOCK_SIZE,
1887 u32 tweak[AES_BLOCK_SIZE / sizeof(u32)]; in atmel_aes_xts_process_data()
1888 static const u32 one[AES_BLOCK_SIZE / sizeof(u32)] = {cpu_to_le32(1), }; in atmel_aes_xts_process_data()
1899 for (i = 0; i < AES_BLOCK_SIZE/2; ++i) { in atmel_aes_xts_process_data()
1900 u8 tmp = tweak_bytes[AES_BLOCK_SIZE - 1 - i]; in atmel_aes_xts_process_data()
1902 tweak_bytes[AES_BLOCK_SIZE - 1 - i] = tweak_bytes[i]; in atmel_aes_xts_process_data()
1960 .cra_blocksize = AES_BLOCK_SIZE,
1969 .ivsize = AES_BLOCK_SIZE,
2044 u32 iv[AES_BLOCK_SIZE / sizeof(u32)]; in atmel_aes_authenc_transfer()
2232 ctx->block_size = AES_BLOCK_SIZE; in atmel_aes_authenc_crypt()
2259 .ivsize = AES_BLOCK_SIZE,
2267 .cra_blocksize = AES_BLOCK_SIZE,
2279 .ivsize = AES_BLOCK_SIZE,
2287 .cra_blocksize = AES_BLOCK_SIZE,
2299 .ivsize = AES_BLOCK_SIZE,
2307 .cra_blocksize = AES_BLOCK_SIZE,
2319 .ivsize = AES_BLOCK_SIZE,
2327 .cra_blocksize = AES_BLOCK_SIZE,
2339 .ivsize = AES_BLOCK_SIZE,
2347 .cra_blocksize = AES_BLOCK_SIZE,
2362 dd->buflen &= ~(AES_BLOCK_SIZE - 1); in atmel_aes_buff_init()