Botan 3.5.0
Crypto and TLS for C&
|
#include <pcurves_impl.h>
Public Types | |
using | Self = MontgomeryRep<Params> |
typedef Params::W | W |
Static Public Member Functions | |
static constexpr std::array< W, N > | from_rep (const std::array< W, N > &z) |
static constexpr std::array< W, N > | one () |
static constexpr std::array< W, N > | redc (const std::array< W, 2 *N > &z) |
static constexpr std::array< W, N > | to_rep (const std::array< W, N > &x) |
static constexpr std::array< W, N > | wide_to_rep (const std::array< W, 2 *N > &x) |
Static Public Attributes | |
static constexpr size_t | N = Params::N |
static constexpr auto | P = Params::P |
static constexpr auto | P_dash = monty_inverse(P[0]) |
static constexpr auto | R1 = montygomery_r(P) |
static constexpr auto | R2 = mul_mod(R1, R1, P) |
static constexpr auto | R3 = mul_mod(R1, R2, P) |
Definition at line 21 of file pcurves_impl.h.
using Botan::MontgomeryRep< Params >::Self = MontgomeryRep<Params> |
Definition at line 23 of file pcurves_impl.h.
typedef Params::W Botan::MontgomeryRep< Params >::W |
Definition at line 27 of file pcurves_impl.h.
|
inlinestaticconstexpr |
Definition at line 60 of file pcurves_impl.h.
References Botan::copy_mem(), and Botan::MontgomeryRep< Params >::redc().
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
Definition at line 39 of file pcurves_impl.h.
References Botan::MontgomeryRep< Params >::P, and Botan::MontgomeryRep< Params >::P_dash.
Referenced by Botan::MontgomeryRep< Params >::from_rep(), Botan::MontgomeryRep< Params >::to_rep(), and Botan::MontgomeryRep< Params >::wide_to_rep().
|
inlinestaticconstexpr |
Definition at line 47 of file pcurves_impl.h.
References Botan::comba_mul(), Botan::MontgomeryRep< Params >::R2, and Botan::MontgomeryRep< Params >::redc().
|
inlinestaticconstexpr |
Definition at line 53 of file pcurves_impl.h.
References Botan::comba_mul(), Botan::MontgomeryRep< Params >::R3, and Botan::MontgomeryRep< Params >::redc().
|
staticconstexpr |
Definition at line 26 of file pcurves_impl.h.
|
staticconstexpr |
Definition at line 25 of file pcurves_impl.h.
Referenced by Botan::MontgomeryRep< Params >::redc().
|
staticconstexpr |
Definition at line 31 of file pcurves_impl.h.
Referenced by Botan::MontgomeryRep< Params >::redc().
|
staticconstexpr |
Definition at line 33 of file pcurves_impl.h.
Referenced by Botan::MontgomeryRep< Params >::one().
|
staticconstexpr |
Definition at line 34 of file pcurves_impl.h.
Referenced by Botan::MontgomeryRep< Params >::to_rep().
|
staticconstexpr |
Definition at line 35 of file pcurves_impl.h.
Referenced by Botan::MontgomeryRep< Params >::wide_to_rep().