Lines Matching refs:BPI
374 #define BPI 4 /* Number of blocks in buffer per ECB call */ macro
420 #define BPI 4 /* Number of blocks in buffer per ECB call */ macro
611 #define BPI 8 /* Number of blocks in buffer per ECB call */ macro
814 i = ad_len / (BPI * 16); in process_ad()
818 block ta[BPI], oa[BPI]; in process_ad()
819 ad_block_num += BPI; in process_ad()
827 #if BPI == 4 in process_ad()
830 #elif BPI == 8 in process_ad()
842 AES_ecb_encrypt_blks(ta, BPI, &ctx->encrypt_key); in process_ad()
847 #if (BPI == 8) in process_ad()
853 adp += BPI; in process_ad()
861 block ta[BPI]; in process_ad()
864 remaining = ((unsigned)ad_len) % (BPI * 16); in process_ad()
867 #if (BPI == 8) in process_ad()
905 #if (BPI == 8) in process_ad()
966 i = pt_len / (BPI * 16); in ae_encrypt()
968 block oa[BPI]; in ae_encrypt()
970 oa[BPI - 1] = offset; in ae_encrypt()
972 block ta[BPI]; in ae_encrypt()
973 block_num += BPI; in ae_encrypt()
974 oa[0] = xor_block(oa[BPI - 1], ctx->L[0]); in ae_encrypt()
983 #if BPI == 4 in ae_encrypt()
987 #elif BPI == 8 in ae_encrypt()
1004 AES_ecb_encrypt_blks(ta, BPI, &ctx->encrypt_key); in ae_encrypt()
1009 #if (BPI == 8) in ae_encrypt()
1015 ptp += BPI; in ae_encrypt()
1016 ctp += BPI; in ae_encrypt()
1018 ctx->offset = offset = oa[BPI - 1]; in ae_encrypt()
1024 block ta[BPI + 1], oa[BPI]; in ae_encrypt()
1027 unsigned remaining = ((unsigned)pt_len) % (BPI * 16); in ae_encrypt()
1030 #if (BPI == 8) in ae_encrypt()
1084 #if (BPI == 8) in ae_encrypt()
1191 i = ct_len / (BPI * 16); in ae_decrypt()
1193 block oa[BPI]; in ae_decrypt()
1195 oa[BPI - 1] = offset; in ae_decrypt()
1197 block ta[BPI]; in ae_decrypt()
1198 block_num += BPI; in ae_decrypt()
1199 oa[0] = xor_block(oa[BPI - 1], ctx->L[0]); in ae_decrypt()
1205 #if BPI == 4 in ae_decrypt()
1208 #elif BPI == 8 in ae_decrypt()
1220 AES_ecb_decrypt_blks(ta, BPI, &ctx->decrypt_key); in ae_decrypt()
1229 #if (BPI == 8) in ae_decrypt()
1239 ptp += BPI; in ae_decrypt()
1240 ctp += BPI; in ae_decrypt()
1242 ctx->offset = offset = oa[BPI - 1]; in ae_decrypt()
1248 block ta[BPI + 1], oa[BPI]; in ae_decrypt()
1251 unsigned remaining = ((unsigned)ct_len) % (BPI * 16); in ae_decrypt()
1254 #if (BPI == 8) in ae_decrypt()
1296 #if (BPI == 8) in ae_decrypt()
1428 int first = ((i/3)/(BPI*16))*(BPI*16);
1474 int first = ((i/3)/(BPI*16))*(BPI*16);