Home | History | Annotate | Download | only in keymaster

Lines Matching refs:ta

805             block ta[BPI], oa[BPI];
809 ta[0] = xor_block(oa[0], adp[0]);
811 ta[1] = xor_block(oa[1], adp[1]);
813 ta[2] = xor_block(oa[2], adp[2]);
816 ta[3] = xor_block(ad_offset, adp[3]);
819 ta[3] = xor_block(oa[3], adp[3]);
821 ta[4] = xor_block(oa[4], adp[4]);
823 ta[5] = xor_block(oa[5], adp[5]);
825 ta[6] = xor_block(oa[6], adp[6]);
827 ta[7] = xor_block(ad_offset, adp[7]);
829 AES_ecb_encrypt_blks(ta, BPI, &ctx->encrypt_key);
830 ad_checksum = xor_block(ad_checksum, ta[0]);
831 ad_checksum = xor_block(ad_checksum, ta[1]);
832 ad_checksum = xor_block(ad_checksum, ta[2]);
833 ad_checksum = xor_block(ad_checksum, ta[3]);
835 ad_checksum = xor_block(ad_checksum, ta[4]);
836 ad_checksum = xor_block(ad_checksum, ta[5]);
837 ad_checksum = xor_block(ad_checksum, ta[6]);
838 ta[7]);
848 block ta[BPI];
857 ta[0] = xor_block(tmp.bl, adp[0]);
859 ta[1] = xor_block(tmp.bl, adp[1]);
861 ta[2] = xor_block(ad_offset, adp[2]);
863 ta[3] = xor_block(ad_offset, adp[3]);
870 ta[k] = xor_block(ad_offset, adp[k]);
872 ta[k + 1] = xor_block(ad_offset, adp[k + 1]);
878 ta[k] = xor_block(ad_offset, adp[k]);
887 ta[k] = xor_block(ad_offset, tmp.bl);
890 AES_ecb_encrypt_blks(ta, k, &ctx->encrypt_key);
894 ad_checksum = xor_block(ad_checksum, ta[7]);
896 ad_checksum = xor_block(ad_checksum, ta[6]);
898 ad_checksum = xor_block(ad_checksum, ta[5]);
900 ad_checksum = xor_block(ad_checksum, ta[4]);
903 ad_checksum = xor_block(ad_checksum, ta[3]);
905 ad_checksum = xor_block(ad_checksum, ta[2]);
907 ad_checksum = xor_block(ad_checksum, ta[1]);
909 ad_checksum = xor_block(ad_checksum, ta[0]);
952 block ta[BPI];
955 ta[0] = xor_block(oa[0], ptp[0]);
958 ta[1] = xor_block(oa[1], ptp[1]);
961 ta[2] = xor_block(oa[2], ptp[2]);
965 ta[3] = xor_block(oa[3], ptp[3]);
969 ta[3] = xor_block(oa[3], ptp[3]);
972 ta[4] = xor_block(oa[4], ptp[4]);
975 ta[5] = xor_block(oa[5], ptp[5]);
978 ta[6] = xor_block(oa[6], ptp[6]);
981 ta[7] = xor_block(oa[7], ptp[7]);
984 AES_ecb_encrypt_blks(ta, BPI, &ctx->encrypt_key);
985 ctp[0] = xor_block(ta[0], oa[0]);
986 ctp[1] = xor_block(ta[1], oa[1]);
987 ctp[2] = xor_block(ta[2], oa[2]);
988 ctp[3] = xor_block(ta[3], oa[3]);
990 ctp[4] = xor_block(ta[4], oa[4]);
991 ctp[5] = xor_block(ta[5], oa[5]);
992 ctp[6] = xor_block(ta[6], oa[6]);
993 ctp[7] = xor_block(ta[7], oa[7]);
1004 block ta[BPI + 1], oa[BPI];
1008 k = 0; /* How many blocks in ta[] need ECBing */
1013 ta[0] = xor_block(oa[0], ptp[0]);
1016 ta[1] = xor_block(oa[1], ptp[1]);
1019 ta[2] = xor_block(oa[2], ptp[2]);
1022 ta[3] = xor_block(offset, ptp[3]);
1030 ta[k] = xor_block(oa[k], ptp[k]);
1033 ta[k + 1] = xor_block(offset, ptp[k + 1]);
1040 ta[k] = xor_block(offset, ptp[k]);
1050 ta[k] = offset = xor_block(offset, ctx->Lstar);
1055 ta[k] = xor_block(offset, checksum); /* Part of tag gen */
1056 AES_ecb_encrypt_blks(ta, k + 1, &ctx->encrypt_key);
1057 offset = xor_block(ta[k], ctx->ad_checksum); /* Part of tag gen */
1060 tmp.bl = xor_block(tmp.bl, ta[k]);
1066 ctp[6] = xor_block(ta[6], oa[6]);
1068 ctp[5] = xor_block(ta[5], oa[5]);
1070 ctp[4] = xor_block(ta[4], oa[4]);
1072 ctp[3] = xor_block(ta[3], oa[3]);
1075 ctp[2] = xor_block(ta[2], oa[2]);
1077 ctp[1] = xor_block(ta[1], oa[1]);
1079 ctp[0] = xor_block(ta[0], oa[0]);
1171 block ta[BPI];
1174 ta[0] = xor_block(oa[0], ctp[0]);
1176 ta[1] = xor_block(oa[1], ctp[1]);
1178 ta[2] = xor_block(oa[2], ctp[2]);
1181 ta[3] = xor_block(oa[3], ctp[3]);
1184 ta[3] = xor_block(oa[3], ctp[3]);
1186 ta[4] = xor_block(oa[4], ctp[4]);
1188 ta[5] = xor_block(oa[5], ctp[5]);
1190 ta[6] = xor_block(oa[6], ctp[6]);
1192 ta[7] = xor_block(oa[7], ctp[7]);
1194 AES_ecb_decrypt_blks(ta, BPI, &ctx->decrypt_key);
1195 ptp[0] = xor_block(ta[0], oa[0]);
1197 ptp[1] = xor_block(ta[1], oa[1]);
1199 ptp[2] = xor_block(ta[2], oa[2]);
1201 ptp[3] = xor_block(ta[3], oa[3]);
1204 ptp[4] = xor_block(ta[4], oa[4]);
1206 ptp[5] = xor_block(ta[5], oa[5]);
1208 ptp[6] = xor_block(ta[6], oa[6]);
1210 ptp[7] = xor_block(ta[7], oa[7]);
1222 block ta[BPI + 1], oa[BPI];
1226 k = 0; /* How many blocks in ta[] need ECBing */
1231 ta[0] = xor_block(oa[0], ctp[0]);
1233 ta[1] = xor_block(oa[1], ctp[1]);
1235 ta[2] = xor_block(oa[2], ctp[2]);
1237 ta[3] = xor_block(offset, ctp[3]);
1244 ta[k] = xor_block(oa[k], ctp[k]);
1246 ta[k + 1] = xor_block(offset, ctp[k + 1]);
1252 ta[k] = xor_block(offset, ctp[k]);
1268 AES_ecb_decrypt_blks(ta, k, &ctx->decrypt_key);
1272 ptp[6] = xor_block(ta[6], oa[6]);
1275 ptp[5] = xor_block(ta[5], oa[5]);
1278 ptp[4] = xor_block(ta[4], oa[4]);
1281 ptp[3] = xor_block(ta[3], oa[3]);
1285 ptp[2] = xor_block(ta[2], oa[2]);
1288 ptp[1] = xor_block(ta[1], oa[1]);
1291 ptp[0] = xor_block(ta[0], oa[0]);