Lines Matching refs:Vector128
160 using Vector128 = __vector unsigned long long; // NOLINT(runtime/int) typedef
163 inline ABSL_TARGET_CRYPTO Vector128 ReverseBytes(const Vector128& v) { in ReverseBytes()
173 inline ABSL_TARGET_CRYPTO Vector128 Vector128Load(const void* from) { in Vector128Load()
174 return vec_vsx_ld(0, reinterpret_cast<const Vector128*>(from)); in Vector128Load()
177 inline ABSL_TARGET_CRYPTO void Vector128Store(const Vector128& v, void* to) { in Vector128Store()
178 vec_vsx_st(v, 0, reinterpret_cast<Vector128*>(to)); in Vector128Store()
183 inline ABSL_TARGET_CRYPTO Vector128 AesRound(const Vector128& state, in AesRound()
184 const Vector128& round_key) { in AesRound()
185 return Vector128(__builtin_crypto_vcipher(state, round_key)); in AesRound()
232 using Vector128 = uint8x16_t; typedef
236 inline ABSL_TARGET_CRYPTO Vector128 Vector128Load(const void* from) { in Vector128Load()
240 inline ABSL_TARGET_CRYPTO void Vector128Store(const Vector128& v, void* to) { in Vector128Store()
246 inline ABSL_TARGET_CRYPTO Vector128 AesRound(const Vector128& state, in AesRound()
247 const Vector128& round_key) { in AesRound()
270 class Vector128 { class
273 inline explicit Vector128(const __m128i& Vector128) : data_(Vector128) {} in Vector128() function in __anon45c556e70411::Vector128
277 inline Vector128& operator^=(const Vector128& other) { in operator ^=()
286 inline ABSL_TARGET_CRYPTO Vector128 Vector128Load(const void* from) { in Vector128Load()
287 return Vector128(_mm_load_si128(reinterpret_cast<const __m128i*>(from))); in Vector128Load()
290 inline ABSL_TARGET_CRYPTO void Vector128Store(const Vector128& v, void* to) { in Vector128Store()
296 inline ABSL_TARGET_CRYPTO Vector128 AesRound(const Vector128& state, in AesRound()
297 const Vector128& round_key) { in AesRound()
301 return Vector128(_mm_aesenc_si128(state.data(), round_key.data())); in AesRound()
337 const Vector128 v0 = Vector128Load(state + shuffle[0]); in BlockShuffle()
338 const Vector128 v1 = Vector128Load(state + shuffle[1]); in BlockShuffle()
339 const Vector128 v2 = Vector128Load(state + shuffle[2]); in BlockShuffle()
340 const Vector128 v3 = Vector128Load(state + shuffle[3]); in BlockShuffle()
341 const Vector128 v4 = Vector128Load(state + shuffle[4]); in BlockShuffle()
342 const Vector128 v5 = Vector128Load(state + shuffle[5]); in BlockShuffle()
343 const Vector128 v6 = Vector128Load(state + shuffle[6]); in BlockShuffle()
344 const Vector128 v7 = Vector128Load(state + shuffle[7]); in BlockShuffle()
345 const Vector128 w0 = Vector128Load(state + shuffle[8]); in BlockShuffle()
346 const Vector128 w1 = Vector128Load(state + shuffle[9]); in BlockShuffle()
347 const Vector128 w2 = Vector128Load(state + shuffle[10]); in BlockShuffle()
348 const Vector128 w3 = Vector128Load(state + shuffle[11]); in BlockShuffle()
349 const Vector128 w4 = Vector128Load(state + shuffle[12]); in BlockShuffle()
350 const Vector128 w5 = Vector128Load(state + shuffle[13]); in BlockShuffle()
351 const Vector128 w6 = Vector128Load(state + shuffle[14]); in BlockShuffle()
352 const Vector128 w7 = Vector128Load(state + shuffle[15]); in BlockShuffle()
384 const Vector128 s0 = Vector128Load(state + 0); in FeistelRound()
385 const Vector128 s1 = Vector128Load(state + 1); in FeistelRound()
386 const Vector128 s2 = Vector128Load(state + 2); in FeistelRound()
387 const Vector128 s3 = Vector128Load(state + 3); in FeistelRound()
388 const Vector128 s4 = Vector128Load(state + 4); in FeistelRound()
389 const Vector128 s5 = Vector128Load(state + 5); in FeistelRound()
390 const Vector128 s6 = Vector128Load(state + 6); in FeistelRound()
391 const Vector128 s7 = Vector128Load(state + 7); in FeistelRound()
392 const Vector128 s8 = Vector128Load(state + 8); in FeistelRound()
393 const Vector128 s9 = Vector128Load(state + 9); in FeistelRound()
394 const Vector128 s10 = Vector128Load(state + 10); in FeistelRound()
395 const Vector128 s11 = Vector128Load(state + 11); in FeistelRound()
396 const Vector128 s12 = Vector128Load(state + 12); in FeistelRound()
397 const Vector128 s13 = Vector128Load(state + 13); in FeistelRound()
398 const Vector128 s14 = Vector128Load(state + 14); in FeistelRound()
399 const Vector128 s15 = Vector128Load(state + 15); in FeistelRound()
402 const Vector128 e0 = AesRound(s0, Vector128Load(keys + 0)); in FeistelRound()
403 const Vector128 e2 = AesRound(s2, Vector128Load(keys + 1)); in FeistelRound()
404 const Vector128 e4 = AesRound(s4, Vector128Load(keys + 2)); in FeistelRound()
405 const Vector128 e6 = AesRound(s6, Vector128Load(keys + 3)); in FeistelRound()
406 const Vector128 e8 = AesRound(s8, Vector128Load(keys + 4)); in FeistelRound()
407 const Vector128 e10 = AesRound(s10, Vector128Load(keys + 5)); in FeistelRound()
408 const Vector128 e12 = AesRound(s12, Vector128Load(keys + 6)); in FeistelRound()
409 const Vector128 e14 = AesRound(s14, Vector128Load(keys + 7)); in FeistelRound()
412 const Vector128 o1 = AesRound(e0, s1); in FeistelRound()
413 const Vector128 o3 = AesRound(e2, s3); in FeistelRound()
414 const Vector128 o5 = AesRound(e4, s5); in FeistelRound()
415 const Vector128 o7 = AesRound(e6, s7); in FeistelRound()
416 const Vector128 o9 = AesRound(e8, s9); in FeistelRound()
417 const Vector128 o11 = AesRound(e10, s11); in FeistelRound()
418 const Vector128 o13 = AesRound(e12, s13); in FeistelRound()
419 const Vector128 o15 = AesRound(e14, s15); in FeistelRound()
471 static_assert(RandenTraits::kCapacityBytes / sizeof(Vector128) == 1, in Absorb()
473 static_assert(RandenTraits::kStateBytes / sizeof(Vector128) == 16, in Absorb()
481 Vector128 b1 = Vector128Load(state + 1); in Absorb()
485 Vector128 b2 = Vector128Load(state + 2); in Absorb()
489 Vector128 b3 = Vector128Load(state + 3); in Absorb()
493 Vector128 b4 = Vector128Load(state + 4); in Absorb()
497 Vector128 b5 = Vector128Load(state + 5); in Absorb()
501 Vector128 b6 = Vector128Load(state + 6); in Absorb()
505 Vector128 b7 = Vector128Load(state + 7); in Absorb()
509 Vector128 b8 = Vector128Load(state + 8); in Absorb()
513 Vector128 b9 = Vector128Load(state + 9); in Absorb()
517 Vector128 b10 = Vector128Load(state + 10); in Absorb()
521 Vector128 b11 = Vector128Load(state + 11); in Absorb()
525 Vector128 b12 = Vector128Load(state + 12); in Absorb()
529 Vector128 b13 = Vector128Load(state + 13); in Absorb()
533 Vector128 b14 = Vector128Load(state + 14); in Absorb()
537 Vector128 b15 = Vector128Load(state + 15); in Absorb()
545 static_assert(RandenTraits::kCapacityBytes == sizeof(Vector128), in Generate()
551 const Vector128 prev_inner = Vector128Load(state); in Generate()
560 Vector128 inner = Vector128Load(state); in Generate()