Botan 3.9.0
Crypto and TLS for C&
|
#include <point_mul.h>
Public Member Functions | |
EC_Point_Base_Point_Precompute (const EC_Point &base_point, const Barrett_Reduction &mod_order) | |
EC_Point | mul (const BigInt &k, RandomNumberGenerator &rng, const BigInt &group_order, std::vector< BigInt > &ws) const |
Definition at line 16 of file point_mul.h.
Botan::EC_Point_Base_Point_Precompute::EC_Point_Base_Point_Precompute | ( | const EC_Point & | base_point, |
const Barrett_Reduction & | mod_order ) |
Definition at line 40 of file point_mul.cpp.
References Botan::EC_Point::force_all_affine(), Botan::Barrett_Reduction::modulus_bits(), Botan::EC_Point::mult2(), Botan::EC_Point::plus(), Botan::round_up(), Botan::EC_Point::swap(), and Botan::EC_Point::WORKSPACE_SIZE.
EC_Point Botan::EC_Point_Base_Point_Precompute::mul | ( | const BigInt & | k, |
RandomNumberGenerator & | rng, | ||
const BigInt & | group_order, | ||
std::vector< BigInt > & | ws ) const |
Definition at line 86 of file point_mul.cpp.
References Botan::EC_Point::add_affine(), Botan::BigInt::bits(), BOTAN_ASSERT, BOTAN_DEBUG_ASSERT, Botan::BigInt::get_substring(), Botan::CT::Mask< T >::is_equal(), Botan::BigInt::is_negative(), Botan::RandomNumberGenerator::is_seeded(), Botan::EC_Point::on_the_curve(), Botan::EC_Point::randomize_repr(), Botan::round_up(), Botan::EC_Point::WORKSPACE_SIZE, and Botan::EC_Point::zero().