Lines Matching refs:block
150 typedef __m128i block; typedef
159 static inline block swap_if_le(block b) { in swap_if_le()
160 block a = _mm_shuffle_epi32(b, _MM_SHUFFLE(0, 1, 2, 3)); in swap_if_le()
166 static inline block gen_offset(uint64_t KtopStr[3], unsigned bot) { in gen_offset()
167 block hi = _mm_load_si128((__m128i*)(KtopStr + 0)); /* hi = B A */ in gen_offset()
168 block lo = _mm_loadu_si128((__m128i*)(KtopStr + 1)); /* lo = C B */ in gen_offset()
178 static inline block double_block(block bl) { in double_block()
188 typedef vector unsigned block; typedef
194 block gen_offset(uint64_t KtopStr[3], unsigned bot) { in gen_offset()
197 block bl; in gen_offset()
205 block gen_offset(uint64_t KtopStr[3], unsigned bot) { in gen_offset()
228 static inline block double_block(block b) { in double_block()
238 return (block)vec_xor(c, t); in double_block()
242 typedef int8x16_t block __attribute__ ((aligned (16))); /* Yay! Endian-neutral reads! */ typedef
245 static inline int unequal_blocks(block a, block b) { in unequal_blocks()
251 block gen_offset(uint64_t KtopStr[3], unsigned bot) { in gen_offset()
262 block rval = (block)veorq_u64(vshlq_u64(hi, ls), vshlq_u64(lo, rs)); in gen_offset()
267 static inline block double_block(block b) { in double_block()
268 const block mask = {135, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; in double_block()
269 block tmp = vshrq_n_s8(b, 7); in double_block()
276 typedef struct { uint64_t l, r; } block; typedef
277 static inline block xor_block(block x, block y) { in xor_block()
282 static inline block zero_block(void) { in zero_block()
283 const block t = {0, 0}; in zero_block()
287 static inline block swap_if_le(block b) { in swap_if_le()
293 block r; in swap_if_le()
302 block gen_offset(uint64_t KtopStr[3], unsigned bot) { in gen_offset()
303 block rval; in gen_offset()
315 static inline block double_block(block b) { in double_block()
328 static inline block double_block(block b) { in double_block()
349 static inline void AES_ecb_encrypt_blks(block* blks, unsigned nblks, AES_KEY* key) { in AES_ecb_encrypt_blks()
356 static inline void AES_ecb_decrypt_blks(block* blks, unsigned nblks, AES_KEY* key) { in AES_ecb_decrypt_blks()
395 static void AES_ecb_encrypt_blks(block* blks, unsigned nblks, AES_KEY* key) { in AES_ecb_encrypt_blks()
402 void AES_ecb_decrypt_blks(block* blks, unsigned nblks, AES_KEY* key) { in AES_ecb_decrypt_blks()
576 static inline void AES_ecb_encrypt_blks(block* blks, unsigned nblks, AES_KEY* key) { in AES_ecb_encrypt_blks()
588 static inline void AES_ecb_decrypt_blks(block* blks, unsigned nblks, AES_KEY* key) { in AES_ecb_decrypt_blks()
620 block offset; /* Memory correct */
621 block checksum; /* Memory correct */
622 block Lstar; /* Memory correct */
623 block Ldollar; /* Memory correct */
624 block L[L_TABLE_SZ]; /* Memory correct */
625 block ad_checksum; /* Memory correct */
626 block ad_offset; /* Memory correct */
627 block cached_Top; /* Memory correct */
645 static block getL(const ae_ctx* ctx, unsigned tz) { in getL()
651 block rval = swap_if_le(ctx->L[L_TABLE_SZ - 1]); in getL()
707 block tmp_blk; in ae_init()
750 static block gen_offset_from_nonce(ae_ctx* ctx, const void* nonce) { in gen_offset_from_nonce()
758 block bl; in gen_offset_from_nonce()
795 block bl; in process_ad()
797 block ad_offset, ad_checksum; in process_ad()
798 const block* adp = (block*)ad; in process_ad()
807 block ta[BPI], oa[BPI]; in process_ad()
850 block ta[BPI]; in process_ad()
925 block bl; in ae_encrypt()
927 block offset, checksum; in ae_encrypt()
929 block* ctp = (block*)ct; in ae_encrypt()
930 const block* ptp = (block*)pt; in ae_encrypt()
950 block oa[BPI]; in ae_encrypt()
954 block ta[BPI]; in ae_encrypt()
1006 block ta[BPI + 1], oa[BPI]; in ae_encrypt()
1088 *(block*)tag = offset; in ae_encrypt()
1136 block bl; in ae_decrypt()
1138 block offset, checksum; in ae_decrypt()
1140 block* ctp = (block*)ct; in ae_decrypt()
1141 block* ptp = (block*)pt; in ae_decrypt()
1169 block oa[BPI]; in ae_decrypt()
1173 block ta[BPI]; in ae_decrypt()
1224 block ta[BPI + 1], oa[BPI]; in ae_decrypt()
1259 block pad; in ae_decrypt()
1305 if (unequal_blocks(tmp.bl, *(block*)tag)) in ae_decrypt()