Home | History | Annotate | Download | only in keymaster

Lines Matching refs:ta

804             block ta[BPI], oa[BPI];
808 ta[0] = xor_block(oa[0], adp[0]);
810 ta[1] = xor_block(oa[1], adp[1]);
812 ta[2] = xor_block(oa[2], adp[2]);
815 ta[3] = xor_block(ad_offset, adp[3]);
818 ta[3] = xor_block(oa[3], adp[3]);
820 ta[4] = xor_block(oa[4], adp[4]);
822 ta[5] = xor_block(oa[5], adp[5]);
824 ta[6] = xor_block(oa[6], adp[6]);
826 ta[7] = xor_block(ad_offset, adp[7]);
828 AES_ecb_encrypt_blks(ta, BPI, &ctx->encrypt_key);
829 ad_checksum = xor_block(ad_checksum, ta[0]);
830 ad_checksum = xor_block(ad_checksum, ta[1]);
831 ad_checksum = xor_block(ad_checksum, ta[2]);
832 ad_checksum = xor_block(ad_checksum, ta[3]);
834 ad_checksum = xor_block(ad_checksum, ta[4]);
835 ad_checksum = xor_block(ad_checksum, ta[5]);
836 ad_checksum = xor_block(ad_checksum, ta[6]);
837 ad_checksum = xor_block(ad_checksum, ta[7]);
847 block ta[BPI];
856 ta[0] = xor_block(tmp.bl, adp[0]);
858 ta[1] = xor_block(tmp.bl, adp[1]);
860 ta[2] = xor_block(ad_offset, adp[2]);
862 ta[3] = xor_block(ad_offset, adp[3]);
869 ta[k] = xor_block(ad_offset, adp[k]);
871 ta[k + 1] = xor_block(ad_offset, adp[k + 1]);
877 ta[k] = xor_block(ad_offset, adp[k]);
886 ta[k] = xor_block(ad_offset, tmp.bl);
889 AES_ecb_encrypt_blks(ta, k, &ctx->encrypt_key);
893 ad_checksum = xor_block(ad_checksum, ta[7]);
895 ad_checksum = xor_block(ad_checksum, ta[6]);
897 ad_checksum = xor_block(ad_checksum, ta[5]);
899 ad_checksum = xor_block(ad_checksum, ta[4]);
902 ad_checksum = xor_block(ad_checksum, ta[3]);
904 ad_checksum = xor_block(ad_checksum, ta[2]);
906 ad_checksum = xor_block(ad_checksum, ta[1]);
908 ad_checksum = xor_block(ad_checksum, ta[0]);
951 block ta[BPI];
954 ta[0] = xor_block(oa[0], ptp[0]);
957 ta[1] = xor_block(oa[1], ptp[1]);
960 ta[2] = xor_block(oa[2], ptp[2]);
964 ta[3] = xor_block(oa[3], ptp[3]);
968 ta[3] = xor_block(oa[3], ptp[3]);
971 ta[4] = xor_block(oa[4], ptp[4]);
974 ta[5] = xor_block(oa[5], ptp[5]);
977 ta[6] = xor_block(oa[6], ptp[6]);
980 ta[7] = xor_block(oa[7], ptp[7]);
983 AES_ecb_encrypt_blks(ta, BPI, &ctx->encrypt_key);
984 ctp[0] = xor_block(ta[0], oa[0]);
985 ctp[1] = xor_block(ta[1], oa[1]);
986 ctp[2] = xor_block(ta[2], oa[2]);
987 ctp[3] = xor_block(ta[3], oa[3]);
989 ctp[4] = xor_block(ta[4], oa[4]);
990 ctp[5] = xor_block(ta[5], oa[5]);
991 ctp[6] = xor_block(ta[6], oa[6]);
992 ctp[7] = xor_block(ta[7], oa[7]);
1003 block ta[BPI + 1], oa[BPI];
1007 k = 0; /* How many blocks in ta[] need ECBing */
1012 ta[0] = xor_block(oa[0], ptp[0]);
1015 ta[1] = xor_block(oa[1], ptp[1]);
1018 ta[2] = xor_block(oa[2], ptp[2]);
1021 ta[3] = xor_block(offset, ptp[3]);
1029 ta[k] = xor_block(oa[k], ptp[k]);
1032 ta[k + 1] = xor_block(offset, ptp[k + 1]);
1039 ta[k] = xor_block(offset, ptp[k]);
1049 ta[k] = offset = xor_block(offset, ctx->Lstar);
1054 ta[k] = xor_block(offset, checksum); /* Part of tag gen */
1055 AES_ecb_encrypt_blks(ta, k + 1, &ctx->encrypt_key);
1056 offset = xor_block(ta[k], ctx->ad_checksum); /* Part of tag gen */
1059 tmp.bl = xor_block(tmp.bl, ta[k]);
1065 ctp[6] = xor_block(ta[6], oa[6]);
1067 ctp[5] = xor_block(ta[5], oa[5]);
1069 ctp[4] = xor_block(ta[4], oa[4]);
1071 ctp[3] = xor_block(ta[3], oa[3]);
1074 ctp[2] = xor_block(ta[2], oa[2]);
1076 ctp[1] = xor_block(ta[1], oa[1]);
1078 ctp[0] = xor_block(ta[0], oa[0]);
1170 block ta[BPI];
1173 ta[0] = xor_block(oa[0], ctp[0]);
1175 ta[1] = xor_block(oa[1], ctp[1]);
1177 ta[2] = xor_block(oa[2], ctp[2]);
1180 ta[3] = xor_block(oa[3], ctp[3]);
1183 ta[3] = xor_block(oa[3], ctp[3]);
1185 ta[4] = xor_block(oa[4], ctp[4]);
1187 ta[5] = xor_block(oa[5], ctp[5]);
1189 ta[6] = xor_block(oa[6], ctp[6]);
1191 ta[7] = xor_block(oa[7], ctp[7]);
1193 AES_ecb_decrypt_blks(ta, BPI, &ctx->decrypt_key);
1194 ptp[0] = xor_block(ta[0], oa[0]);
1196 ptp[1] = xor_block(ta[1], oa[1]);
1198 ptp[2] = xor_block(ta[2], oa[2]);
1200 ptp[3] = xor_block(ta[3], oa[3]);
1203 ptp[4] = xor_block(ta[4], oa[4]);
1205 ptp[5] = xor_block(ta[5], oa[5]);
1207 ptp[6] = xor_block(ta[6], oa[6]);
1209 ptp[7] = xor_block(ta[7], oa[7]);
1221 block ta[BPI + 1], oa[BPI];
1225 k = 0; /* How many blocks in ta[] need ECBing */
1230 ta[0] = xor_block(oa[0], ctp[0]);
1232 ta[1] = xor_block(oa[1], ctp[1]);
1234 ta[2] = xor_block(oa[2], ctp[2]);
1236 ta[3] = xor_block(offset, ctp[3]);
1243 ta[k] = xor_block(oa[k], ctp[k]);
1245 ta[k + 1] = xor_block(offset, ctp[k + 1]);
1251 ta[k] = xor_block(offset, ctp[k]);
1267 AES_ecb_decrypt_blks(ta, k, &ctx->decrypt_key);
1271 ptp[6] = xor_block(ta[6], oa[6]);
1274 ptp[5] = xor_block(ta[5], oa[5]);
1277 ptp[4] = xor_block(ta[4], oa[4]);
1280 ptp[3] = xor_block(ta[3], oa[3]);
1284 ptp[2] = xor_block(ta[2], oa[2]);
1287 ptp[1] = xor_block(ta[1], oa[1]);
1290 ptp[0] = xor_block(ta[0], oa[0]);