|
Botan 3.14.1
Crypto and TLS for C&
|
Functions | |
| BOTAN_FN_ISA_AVX2 void | inverse_ntt (std::span< int16_t, 256 > p) |
| BOTAN_FN_ISA_AVX2 void | ntt (std::span< int16_t, 256 > p) |
| BOTAN_FN_ISA_AVX2 void | poly_pointwise_montgomery (std::span< int16_t, 256 > result, std::span< const int16_t, 256 > lhs, std::span< const int16_t, 256 > rhs) |
| BOTAN_TEST_API void Botan::Kyber_AVX2::inverse_ntt | ( | std::span< int16_t, 256 > | p | ) |
Definition at line 390 of file kyber_avx2.cpp.
References Botan::CRYSTALS::Trait_Base< KyberConstants, KyberPolyTraits >::BARRETT_V, Botan::KyberConstants::Q, and Botan::reduce().
Referenced by Botan::KyberPolyTraits::inverse_ntt().
| BOTAN_TEST_API void Botan::Kyber_AVX2::ntt | ( | std::span< int16_t, 256 > | p | ) |
AVX2 versions of the KyberPolyTraits operations of the same name.
The polynomials use the standard coefficient order in memory, so the results are interchangeable with the scalar implementations: ntt and poly_pointwise_montgomery produce identical values, inverse_ntt values that are congruent mod q and within (-q, q).
Definition at line 343 of file kyber_avx2.cpp.
References Botan::CRYSTALS::Trait_Base< KyberConstants, KyberPolyTraits >::BARRETT_V, and Botan::KyberConstants::Q.
Referenced by Botan::KyberPolyTraits::ntt().
| BOTAN_TEST_API void Botan::Kyber_AVX2::poly_pointwise_montgomery | ( | std::span< int16_t, 256 > | result, |
| std::span< const int16_t, 256 > | lhs, | ||
| std::span< const int16_t, 256 > | rhs ) |
Definition at line 446 of file kyber_avx2.cpp.
References Botan::KyberConstants::Q, and Botan::KyberPolyTraits::q_inverse().
Referenced by Botan::KyberPolyTraits::poly_pointwise_montgomery().