Lines Matching refs:AES_BLOCK_SIZE

123 	u32			iv[AES_BLOCK_SIZE / sizeof(u32)];
135 u32 j0[AES_BLOCK_SIZE / sizeof(u32)];
136 u32 tag[AES_BLOCK_SIZE / sizeof(u32)];
137 u32 ghash[AES_BLOCK_SIZE / sizeof(u32)];
160 u32 lastc[AES_BLOCK_SIZE / sizeof(u32)];
396 atmel_aes_read_n(dd, offset, value, SIZE_IN_WORDS(AES_BLOCK_SIZE)); in atmel_aes_read_block()
402 atmel_aes_write_n(dd, offset, value, SIZE_IN_WORDS(AES_BLOCK_SIZE)); in atmel_aes_write_block()
584 dd->datalen -= AES_BLOCK_SIZE; in atmel_aes_cpu_transfer()
586 if (dd->datalen < AES_BLOCK_SIZE) in atmel_aes_cpu_transfer()
615 size_t padlen = atmel_aes_padlen(len, AES_BLOCK_SIZE); in atmel_aes_cpu_start()
878 case AES_BLOCK_SIZE: in atmel_aes_dma_start()
985 dd->ctx->block_size != AES_BLOCK_SIZE); in atmel_aes_start()
1025 blocks = DIV_ROUND_UP(datalen, AES_BLOCK_SIZE); in atmel_aes_ctr_transfer()
1034 datalen = AES_BLOCK_SIZE * -start; in atmel_aes_ctr_transfer()
1044 datalen = AES_BLOCK_SIZE * (0x10000-start); in atmel_aes_ctr_transfer()
1063 crypto_inc((u8 *)ctx->iv, AES_BLOCK_SIZE); in atmel_aes_ctr_transfer()
1087 memcpy(ctx->iv, req->info, AES_BLOCK_SIZE); in atmel_aes_ctr_start()
1118 ctx->block_size = AES_BLOCK_SIZE; in atmel_aes_crypt()
1274 .cra_blocksize = AES_BLOCK_SIZE,
1293 .cra_blocksize = AES_BLOCK_SIZE,
1302 .ivsize = AES_BLOCK_SIZE,
1313 .cra_blocksize = AES_BLOCK_SIZE,
1322 .ivsize = AES_BLOCK_SIZE,
1333 .cra_blocksize = AES_BLOCK_SIZE,
1342 .ivsize = AES_BLOCK_SIZE,
1362 .ivsize = AES_BLOCK_SIZE,
1382 .ivsize = AES_BLOCK_SIZE,
1402 .ivsize = AES_BLOCK_SIZE,
1422 .ivsize = AES_BLOCK_SIZE,
1444 .ivsize = AES_BLOCK_SIZE,
1516 dd->datalen -= AES_BLOCK_SIZE; in atmel_aes_gcm_ghash_finalize()
1557 padlen = atmel_aes_padlen(ivsize, AES_BLOCK_SIZE); in atmel_aes_gcm_start()
1558 datalen = ivsize + padlen + AES_BLOCK_SIZE; in atmel_aes_gcm_start()
1617 padlen = atmel_aes_padlen(req->assoclen, AES_BLOCK_SIZE); in atmel_aes_gcm_length()
1640 dd->datalen -= AES_BLOCK_SIZE; in atmel_aes_gcm_data()
1698 return atmel_aes_gcm_ghash(dd, (const u32 *)data, AES_BLOCK_SIZE, in atmel_aes_gcm_tag_init()
1757 ctx->block_size = AES_BLOCK_SIZE; in atmel_aes_gcm_crypt()
1835 .maxauthsize = AES_BLOCK_SIZE,
1890 u32 tweak[AES_BLOCK_SIZE / sizeof(u32)]; in atmel_aes_xts_process_data()
1891 static const u32 one[AES_BLOCK_SIZE / sizeof(u32)] = {cpu_to_le32(1), }; in atmel_aes_xts_process_data()
1902 for (i = 0; i < AES_BLOCK_SIZE/2; ++i) { in atmel_aes_xts_process_data()
1903 u8 tmp = tweak_bytes[AES_BLOCK_SIZE - 1 - i]; in atmel_aes_xts_process_data()
1905 tweak_bytes[AES_BLOCK_SIZE - 1 - i] = tweak_bytes[i]; in atmel_aes_xts_process_data()
1963 .cra_blocksize = AES_BLOCK_SIZE,
1972 .ivsize = AES_BLOCK_SIZE,
2047 u32 iv[AES_BLOCK_SIZE / sizeof(u32)]; in atmel_aes_authenc_transfer()
2235 ctx->block_size = AES_BLOCK_SIZE; in atmel_aes_authenc_crypt()
2262 .ivsize = AES_BLOCK_SIZE,
2270 .cra_blocksize = AES_BLOCK_SIZE,
2282 .ivsize = AES_BLOCK_SIZE,
2290 .cra_blocksize = AES_BLOCK_SIZE,
2302 .ivsize = AES_BLOCK_SIZE,
2310 .cra_blocksize = AES_BLOCK_SIZE,
2322 .ivsize = AES_BLOCK_SIZE,
2330 .cra_blocksize = AES_BLOCK_SIZE,
2342 .ivsize = AES_BLOCK_SIZE,
2350 .cra_blocksize = AES_BLOCK_SIZE,
2365 dd->buflen &= ~(AES_BLOCK_SIZE - 1); in atmel_aes_buff_init()