Lines Matching refs:AES_BLOCK_SIZE

20 				& ~(AES_BLOCK_SIZE - 1))
22 AES_BLOCK_SIZE * 2)
129 __be32 iv[AES_BLOCK_SIZE / sizeof(u32)];
186 len &= AES_BLOCK_SIZE - 1; in mtk_aes_padlen()
187 return len ? AES_BLOCK_SIZE - len : 0; in mtk_aes_padlen()
195 if (!IS_ALIGNED(len, AES_BLOCK_SIZE)) in mtk_aes_check_aligned()
203 if (!IS_ALIGNED(len, AES_BLOCK_SIZE)) in mtk_aes_check_aligned()
212 if (!IS_ALIGNED(sg->length, AES_BLOCK_SIZE)) in mtk_aes_check_aligned()
308 le32_add_cpu(&res->hdr, AES_BLOCK_SIZE); in mtk_aes_xmit()
436 memcpy(info->state + ctx->keylen, req->iv, AES_BLOCK_SIZE); in mtk_aes_info_init()
439 le32_to_cpu(AES_TFM_SIZE(SIZE_IN_WORDS(AES_BLOCK_SIZE)))); in mtk_aes_info_init()
570 blocks = DIV_ROUND_UP(datalen, AES_BLOCK_SIZE); in mtk_aes_ctr_transfer()
578 datalen = AES_BLOCK_SIZE * -start; in mtk_aes_ctr_transfer()
588 memcpy(ctx->info.state + ctx->keylen, cctx->iv, AES_BLOCK_SIZE); in mtk_aes_ctr_transfer()
596 crypto_inc((u8 *)cctx->iv, AES_BLOCK_SIZE); in mtk_aes_ctr_transfer()
610 memcpy(cctx->iv, req->iv, AES_BLOCK_SIZE); in mtk_aes_ctr_start()
737 .base.cra_blocksize = AES_BLOCK_SIZE,
747 .ivsize = AES_BLOCK_SIZE,
755 .base.cra_blocksize = AES_BLOCK_SIZE,
779 .ivsize = AES_BLOCK_SIZE,
790 .base.cra_blocksize = AES_BLOCK_SIZE,
797 .ivsize = AES_BLOCK_SIZE,
814 .ivsize = AES_BLOCK_SIZE,
870 ctx->keylen + SIZE_IN_WORDS(AES_BLOCK_SIZE + ivsize)) | in mtk_aes_gcm_info_init()
875 memcpy(info->state + ctx->keylen + SIZE_IN_WORDS(AES_BLOCK_SIZE), in mtk_aes_gcm_info_init()
981 u32 x32[SIZE_IN_WORDS(AES_BLOCK_SIZE)]; in mtk_aes_gcm_setkey()
982 u8 x8[AES_BLOCK_SIZE]; in mtk_aes_gcm_setkey()
1015 for (i = 0; i < SIZE_IN_WORDS(AES_BLOCK_SIZE); i++) in mtk_aes_gcm_setkey()
1018 memcpy(ctx->key + ctx->keylen, &hash, AES_BLOCK_SIZE); in mtk_aes_gcm_setkey()
1069 .maxauthsize = AES_BLOCK_SIZE,