• Home
  • Raw
  • Download

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()
269 block tmp = vshrq_n_s8(b, 7); in double_block() local
270 tmp = vandq_s8(tmp, mask); in double_block()
271 tmp = vextq_s8(tmp, tmp, 1); /* Rotate high byte to end */ in double_block()
273 return veorq_s8(tmp, b); in double_block()
441 kp[idx] = _mm_castps_si128(_mm_shuffle_ps(_mm_castsi128_ps(tmp), _mm_castsi128_ps(x0), 68)); \
448 tmp = x3
478 __m128i x0, x1, x2, x3, tmp, *kp = (__m128i*)key; in AES_192_Key_Expansion() local
480 tmp = x3 = _mm_loadu_si128((__m128i*)(userkey + 16)); in AES_192_Key_Expansion()
557 __m128i tmp = _mm_load_si128((__m128i*)in); in AES_encrypt() local
558 tmp = _mm_xor_si128(tmp, sched[0]); in AES_encrypt()
560 tmp = _mm_aesenc_si128(tmp, sched[j]); in AES_encrypt()
561 tmp = _mm_aesenclast_si128(tmp, sched[j]); in AES_encrypt()
562 _mm_store_si128((__m128i*)out, tmp); in AES_encrypt()
568 __m128i tmp = _mm_load_si128((__m128i*)in); in AES_decrypt() local
569 tmp = _mm_xor_si128(tmp, sched[0]); in AES_decrypt()
571 tmp = _mm_aesdec_si128(tmp, sched[j]); in AES_decrypt()
572 tmp = _mm_aesdeclast_si128(tmp, sched[j]); in AES_decrypt()
573 _mm_store_si128((__m128i*)out, tmp); in AES_decrypt()
759 } tmp; in gen_offset_from_nonce() local
765 tmp.u32[0] = 0x01000000 + ((OCB_TAG_LEN * 8 % 128) << 1); in gen_offset_from_nonce()
767 tmp.u32[0] = 0x00000001 + ((OCB_TAG_LEN * 8 % 128) << 25); in gen_offset_from_nonce()
770 tmp.u32[0] = 0x01000000 + ((ctx->tag_len * 8 % 128) << 1); in gen_offset_from_nonce()
772 tmp.u32[0] = 0x00000001 + ((ctx->tag_len * 8 % 128) << 25); in gen_offset_from_nonce()
774 tmp.u32[1] = ((uint32_t*)nonce)[0]; in gen_offset_from_nonce()
775 tmp.u32[2] = ((uint32_t*)nonce)[1]; in gen_offset_from_nonce()
776 tmp.u32[3] = ((uint32_t*)nonce)[2]; in gen_offset_from_nonce()
777 idx = (unsigned)(tmp.u8[15] & 0x3f); /* Get low 6 bits of nonce */ in gen_offset_from_nonce()
778 tmp.u8[15] = tmp.u8[15] & 0xc0; /* Zero low 6 bits of nonce */ in gen_offset_from_nonce()
779 if (unequal_blocks(tmp.bl, ctx->cached_Top)) { /* Cached? */ in gen_offset_from_nonce()
780 ctx->cached_Top = tmp.bl; /* Update cache, KtopStr */ in gen_offset_from_nonce()
781 AES_encrypt(tmp.u8, (unsigned char*)&ctx->KtopStr, &ctx->encrypt_key); in gen_offset_from_nonce()
796 } tmp; in process_ad() local
858 tmp.bl = xor_block(ad_offset, ctx->L[0]); in process_ad()
859 ta[0] = xor_block(tmp.bl, adp[0]); in process_ad()
860 tmp.bl = xor_block(tmp.bl, ctx->L[1]); in process_ad()
861 ta[1] = xor_block(tmp.bl, adp[1]); in process_ad()
886 tmp.bl = zero_block(); in process_ad()
887 memcpy(tmp.u8, adp + k, remaining); in process_ad()
888 tmp.u8[remaining] = (unsigned char)0x80u; in process_ad()
889 ta[k] = xor_block(ad_offset, tmp.bl); in process_ad()
926 } tmp; in ae_encrypt() local
1048 tmp.bl = zero_block(); in ae_encrypt()
1049 memcpy(tmp.u8, ptp + k, remaining); in ae_encrypt()
1050 tmp.u8[remaining] = (unsigned char)0x80u; in ae_encrypt()
1051 checksum = xor_block(checksum, tmp.bl); in ae_encrypt()
1062 tmp.bl = xor_block(tmp.bl, ta[k]); in ae_encrypt()
1063 memcpy(ctp + k, tmp.u8, remaining); in ae_encrypt()
1137 } tmp; in ae_decrypt() local
1261 AES_encrypt((unsigned char*)&offset, tmp.u8, &ctx->encrypt_key); in ae_decrypt()
1262 pad = tmp.bl; in ae_decrypt()
1263 memcpy(tmp.u8, ctp + k, remaining); in ae_decrypt()
1264 tmp.bl = xor_block(tmp.bl, pad); in ae_decrypt()
1265 tmp.u8[remaining] = (unsigned char)0x80u; in ae_decrypt()
1266 memcpy(ptp + k, tmp.u8, remaining); in ae_decrypt()
1267 checksum = xor_block(checksum, tmp.bl); in ae_decrypt()
1299 tmp.bl = xor_block(offset, checksum); in ae_decrypt()
1300 AES_encrypt(tmp.u8, tmp.u8, &ctx->encrypt_key); in ae_decrypt()
1301 tmp.bl = xor_block(tmp.bl, ctx->ad_checksum); /* Full tag */ in ae_decrypt()
1305 if (unequal_blocks(tmp.bl, *(block*)tag)) in ae_decrypt()
1314 if (constant_time_memcmp(tag, tmp.u8, len) != 0) in ae_decrypt()
1317 if (constant_time_memcmp((char*)ct + ct_len, tmp.u8, len) != 0) in ae_decrypt()