Lines Matching refs:tmp
180 __m128i tmp = _mm_srai_epi32(bl, 31); in double_block() local
181 tmp = _mm_and_si128(tmp, mask); in double_block()
182 tmp = _mm_shuffle_epi32(tmp, _MM_SHUFFLE(2, 1, 0, 3)); in double_block()
184 return _mm_xor_si128(bl, tmp); in double_block()
268 block tmp = vshrq_n_s8(b, 7); in double_block() local
269 tmp = vandq_s8(tmp, mask); in double_block()
270 tmp = vextq_s8(tmp, tmp, 1); /* Rotate high byte to end */ in double_block()
272 return veorq_s8(tmp, b); in double_block()
440 kp[idx] = _mm_castps_si128(_mm_shuffle_ps(_mm_castsi128_ps(tmp), _mm_castsi128_ps(x0), 68)); \
447 tmp = x3
477 __m128i x0, x1, x2, x3, tmp, *kp = (__m128i*)key; in AES_192_Key_Expansion() local
479 tmp = x3 = _mm_loadu_si128((__m128i*)(userkey + 16)); in AES_192_Key_Expansion()
556 __m128i tmp = _mm_load_si128((__m128i*)in); in AES_encrypt() local
557 tmp = _mm_xor_si128(tmp, sched[0]); in AES_encrypt()
559 tmp = _mm_aesenc_si128(tmp, sched[j]); in AES_encrypt()
560 tmp = _mm_aesenclast_si128(tmp, sched[j]); in AES_encrypt()
561 _mm_store_si128((__m128i*)out, tmp); in AES_encrypt()
567 __m128i tmp = _mm_load_si128((__m128i*)in); in AES_decrypt() local
568 tmp = _mm_xor_si128(tmp, sched[0]); in AES_decrypt()
570 tmp = _mm_aesdec_si128(tmp, sched[j]); in AES_decrypt()
571 tmp = _mm_aesdeclast_si128(tmp, sched[j]); in AES_decrypt()
572 _mm_store_si128((__m128i*)out, tmp); in AES_decrypt()
756 } tmp; in gen_offset_from_nonce() local
762 tmp.u32[0] = 0x01000000 + ((OCB_TAG_LEN * 8 % 128) << 1); in gen_offset_from_nonce()
764 tmp.u32[0] = 0x00000001 + ((OCB_TAG_LEN * 8 % 128) << 25); in gen_offset_from_nonce()
767 tmp.u32[0] = 0x01000000 + ((ctx->tag_len * 8 % 128) << 1); in gen_offset_from_nonce()
769 tmp.u32[0] = 0x00000001 + ((ctx->tag_len * 8 % 128) << 25); in gen_offset_from_nonce()
771 tmp.u32[1] = ((uint32_t*)nonce)[0]; in gen_offset_from_nonce()
772 tmp.u32[2] = ((uint32_t*)nonce)[1]; in gen_offset_from_nonce()
773 tmp.u32[3] = ((uint32_t*)nonce)[2]; in gen_offset_from_nonce()
774 idx = (unsigned)(tmp.u8[15] & 0x3f); /* Get low 6 bits of nonce */ in gen_offset_from_nonce()
775 tmp.u8[15] = tmp.u8[15] & 0xc0; /* Zero low 6 bits of nonce */ in gen_offset_from_nonce()
776 if (unequal_blocks(tmp.bl, ctx->cached_Top)) { /* Cached? */ in gen_offset_from_nonce()
777 ctx->cached_Top = tmp.bl; /* Update cache, KtopStr */ in gen_offset_from_nonce()
778 AES_encrypt(tmp.u8, (unsigned char*)&ctx->KtopStr, &ctx->encrypt_key); in gen_offset_from_nonce()
793 } tmp; in process_ad() local
855 tmp.bl = xor_block(ad_offset, ctx->L[0]); in process_ad()
856 ta[0] = xor_block(tmp.bl, adp[0]); in process_ad()
857 tmp.bl = xor_block(tmp.bl, ctx->L[1]); in process_ad()
858 ta[1] = xor_block(tmp.bl, adp[1]); in process_ad()
883 tmp.bl = zero_block(); in process_ad()
884 memcpy(tmp.u8, adp + k, remaining); in process_ad()
885 tmp.u8[remaining] = (unsigned char)0x80u; in process_ad()
886 ta[k] = xor_block(ad_offset, tmp.bl); in process_ad()
923 } tmp; in ae_encrypt() local
1045 tmp.bl = zero_block(); in ae_encrypt()
1046 memcpy(tmp.u8, ptp + k, remaining); in ae_encrypt()
1047 tmp.u8[remaining] = (unsigned char)0x80u; in ae_encrypt()
1048 checksum = xor_block(checksum, tmp.bl); in ae_encrypt()
1059 tmp.bl = xor_block(tmp.bl, ta[k]); in ae_encrypt()
1060 memcpy(ctp + k, tmp.u8, remaining); in ae_encrypt()
1134 } tmp; in ae_decrypt() local
1258 AES_encrypt((unsigned char*)&offset, tmp.u8, &ctx->encrypt_key); in ae_decrypt()
1259 pad = tmp.bl; in ae_decrypt()
1260 memcpy(tmp.u8, ctp + k, remaining); in ae_decrypt()
1261 tmp.bl = xor_block(tmp.bl, pad); in ae_decrypt()
1262 tmp.u8[remaining] = (unsigned char)0x80u; in ae_decrypt()
1263 memcpy(ptp + k, tmp.u8, remaining); in ae_decrypt()
1264 checksum = xor_block(checksum, tmp.bl); in ae_decrypt()
1296 tmp.bl = xor_block(offset, checksum); in ae_decrypt()
1297 AES_encrypt(tmp.u8, tmp.u8, &ctx->encrypt_key); in ae_decrypt()
1298 tmp.bl = xor_block(tmp.bl, ctx->ad_checksum); /* Full tag */ in ae_decrypt()
1302 if (unequal_blocks(tmp.bl, *(block*)tag)) in ae_decrypt()
1311 if (constant_time_memcmp(tag, tmp.u8, len) != 0) in ae_decrypt()
1314 if (constant_time_memcmp((char*)ct + ct_len, tmp.u8, len) != 0) in ae_decrypt()