Botan 3.6.1
Crypto and TLS for C&
|
Table for computing g*x + h*y. More...
#include <ec_group.h>
Public Member Functions | |
std::optional< EC_AffinePoint > | mul2_vartime (const EC_Scalar &x, const EC_Scalar &y) const |
bool | mul2_vartime_x_mod_order_eq (const EC_Scalar &v, const EC_Scalar &c, const EC_Scalar &x, const EC_Scalar &y) const |
bool | mul2_vartime_x_mod_order_eq (const EC_Scalar &v, const EC_Scalar &x, const EC_Scalar &y) const |
Mul2Table (const EC_AffinePoint &h) | |
~Mul2Table () | |
Table for computing g*x + h*y.
Definition at line 255 of file ec_group.h.
Botan::EC_Group::Mul2Table::Mul2Table | ( | const EC_AffinePoint & | h | ) |
Create a table for computing g*x + h*y
Definition at line 639 of file ec_group.cpp.
|
default |
std::optional< EC_AffinePoint > Botan::EC_Group::Mul2Table::mul2_vartime | ( | const EC_Scalar & | x, |
const EC_Scalar & | y ) const |
Return the elliptic curve point g*x + h*y
Where g is the group generator and h is the value passed to the constructor
Returns nullopt if g*x + h*y was the point at infinity
Definition at line 643 of file ec_group.cpp.
References Botan::EC_AffinePoint::_from_inner(), and Botan::EC_Scalar::_inner().
Referenced by Botan::EC_Group::point_multiply().
bool Botan::EC_Group::Mul2Table::mul2_vartime_x_mod_order_eq | ( | const EC_Scalar & | v, |
const EC_Scalar & | c, | ||
const EC_Scalar & | x, | ||
const EC_Scalar & | y ) const |
Check if v equals the x coordinate of g*x*c + h*y*c reduced modulo the order
Where g is the group generator and h is the value passed to the constructor
Returns false if unequal, including if g*x*c + h*y*c was the point at infinity
Definition at line 658 of file ec_group.cpp.
bool Botan::EC_Group::Mul2Table::mul2_vartime_x_mod_order_eq | ( | const EC_Scalar & | v, |
const EC_Scalar & | x, | ||
const EC_Scalar & | y ) const |
Check if v equals the x coordinate of g*x + h*y reduced modulo the order
Where g is the group generator and h is the value passed to the constructor
Returns false if unequal, including if g*x + h*y was the point at infinity
Definition at line 652 of file ec_group.cpp.
References Botan::EC_Scalar::_inner().