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
801 i = ad_len / (BPI * 16); in process_ad()
805 block ta[BPI], oa[BPI]; in process_ad()
806 ad_block_num += BPI; in process_ad()
814 #if BPI == 4 in process_ad()
817 #elif BPI == 8 in process_ad()
829 AES_ecb_encrypt_blks(ta, BPI, &ctx->encrypt_key); in process_ad()
834 #if (BPI == 8) in process_ad()
840 adp += BPI; in process_ad()
848 block ta[BPI]; in process_ad()
851 remaining = ((unsigned)ad_len) % (BPI * 16); in process_ad()
854 #if (BPI == 8) in process_ad()
892 #if (BPI == 8) in process_ad()
946 i = pt_len / (BPI * 16); in ae_encrypt()
948 block oa[BPI]; in ae_encrypt()
950 oa[BPI - 1] = offset; in ae_encrypt()
952 block ta[BPI]; in ae_encrypt()
953 block_num += BPI; in ae_encrypt()
954 oa[0] = xor_block(oa[BPI - 1], ctx->L[0]); in ae_encrypt()
963 #if BPI == 4 in ae_encrypt()
967 #elif BPI == 8 in ae_encrypt()
984 AES_ecb_encrypt_blks(ta, BPI, &ctx->encrypt_key); in ae_encrypt()
989 #if (BPI == 8) in ae_encrypt()
995 ptp += BPI; in ae_encrypt()
996 ctp += BPI; in ae_encrypt()
998 ctx->offset = offset = oa[BPI - 1]; in ae_encrypt()
1004 block ta[BPI + 1], oa[BPI]; in ae_encrypt()
1007 unsigned remaining = ((unsigned)pt_len) % (BPI * 16); in ae_encrypt()
1010 #if (BPI == 8) in ae_encrypt()
1064 #if (BPI == 8) in ae_encrypt()
1165 i = ct_len / (BPI * 16); in ae_decrypt()
1167 block oa[BPI]; in ae_decrypt()
1169 oa[BPI - 1] = offset; in ae_decrypt()
1171 block ta[BPI]; in ae_decrypt()
1172 block_num += BPI; in ae_decrypt()
1173 oa[0] = xor_block(oa[BPI - 1], ctx->L[0]); in ae_decrypt()
1179 #if BPI == 4 in ae_decrypt()
1182 #elif BPI == 8 in ae_decrypt()
1194 AES_ecb_decrypt_blks(ta, BPI, &ctx->decrypt_key); in ae_decrypt()
1203 #if (BPI == 8) in ae_decrypt()
1213 ptp += BPI; in ae_decrypt()
1214 ctp += BPI; in ae_decrypt()
1216 ctx->offset = offset = oa[BPI - 1]; in ae_decrypt()
1222 block ta[BPI + 1], oa[BPI]; in ae_decrypt()
1225 unsigned remaining = ((unsigned)ct_len) % (BPI * 16); in ae_decrypt()
1228 #if (BPI == 8) in ae_decrypt()
1270 #if (BPI == 8) in ae_decrypt()
1396 int first = ((i/3)/(BPI*16))*(BPI*16);
1442 int first = ((i/3)/(BPI*16))*(BPI*16);