Lines Matching refs:BPI
363 #define BPI 4 /* Number of blocks in buffer per ECB call */ macro
409 #define BPI 4 /* Number of blocks in buffer per ECB call */ macro
600 #define BPI 8 /* Number of blocks in buffer per ECB call */ macro
803 i = ad_len / (BPI * 16); in process_ad()
807 block ta[BPI], oa[BPI]; in process_ad()
808 ad_block_num += BPI; in process_ad()
816 #if BPI == 4 in process_ad()
819 #elif BPI == 8 in process_ad()
831 AES_ecb_encrypt_blks(ta, BPI, &ctx->encrypt_key); in process_ad()
836 #if (BPI == 8) in process_ad()
842 adp += BPI; in process_ad()
850 block ta[BPI]; in process_ad()
853 remaining = ((unsigned)ad_len) % (BPI * 16); in process_ad()
856 #if (BPI == 8) in process_ad()
894 #if (BPI == 8) in process_ad()
948 i = pt_len / (BPI * 16); in ae_encrypt()
950 block oa[BPI]; in ae_encrypt()
952 oa[BPI - 1] = offset; in ae_encrypt()
954 block ta[BPI]; in ae_encrypt()
955 block_num += BPI; in ae_encrypt()
956 oa[0] = xor_block(oa[BPI - 1], ctx->L[0]); in ae_encrypt()
965 #if BPI == 4 in ae_encrypt()
969 #elif BPI == 8 in ae_encrypt()
986 AES_ecb_encrypt_blks(ta, BPI, &ctx->encrypt_key); in ae_encrypt()
991 #if (BPI == 8) in ae_encrypt()
997 ptp += BPI; in ae_encrypt()
998 ctp += BPI; in ae_encrypt()
1000 ctx->offset = offset = oa[BPI - 1]; in ae_encrypt()
1006 block ta[BPI + 1], oa[BPI]; in ae_encrypt()
1009 unsigned remaining = ((unsigned)pt_len) % (BPI * 16); in ae_encrypt()
1012 #if (BPI == 8) in ae_encrypt()
1066 #if (BPI == 8) in ae_encrypt()
1167 i = ct_len / (BPI * 16); in ae_decrypt()
1169 block oa[BPI]; in ae_decrypt()
1171 oa[BPI - 1] = offset; in ae_decrypt()
1173 block ta[BPI]; in ae_decrypt()
1174 block_num += BPI; in ae_decrypt()
1175 oa[0] = xor_block(oa[BPI - 1], ctx->L[0]); in ae_decrypt()
1181 #if BPI == 4 in ae_decrypt()
1184 #elif BPI == 8 in ae_decrypt()
1196 AES_ecb_decrypt_blks(ta, BPI, &ctx->decrypt_key); in ae_decrypt()
1205 #if (BPI == 8) in ae_decrypt()
1215 ptp += BPI; in ae_decrypt()
1216 ctp += BPI; in ae_decrypt()
1218 ctx->offset = offset = oa[BPI - 1]; in ae_decrypt()
1224 block ta[BPI + 1], oa[BPI]; in ae_decrypt()
1227 unsigned remaining = ((unsigned)ct_len) % (BPI * 16); in ae_decrypt()
1230 #if (BPI == 8) in ae_decrypt()
1272 #if (BPI == 8) in ae_decrypt()
1398 int first = ((i/3)/(BPI*16))*(BPI*16);
1444 int first = ((i/3)/(BPI*16))*(BPI*16);