10 #include <botan/ecdh.h> 11 #include <botan/internal/assert.h> 16 curve(key.domain().get_curve()),
17 cofactor(key.domain().get_cofactor())
27 PointGFp S = (cofactor * point) * l_times_priv;
30 "ECDH agreed value not on the curve");
SecureVector< byte > agree(const byte w[], size_t w_len)
const BigInt & private_value() const
PointGFp OS2ECP(const byte data[], size_t data_len, const CurveGFp &curve)
BigInt get_affine_x() const
#define BOTAN_ASSERT(expr, msg)
const EC_Group & domain() const
ECDH_KA_Operation(const ECDH_PrivateKey &key)
const BigInt & get_order() const
bool on_the_curve() const
BigInt inverse_mod(const BigInt &n, const BigInt &mod)
const BigInt & get_p() const
static SecureVector< byte > encode_1363(const BigInt &n, size_t bytes)