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 EC_Group & domain() const
PointGFp OS2ECP(const byte data[], size_t data_len, const CurveGFp &curve)
#define BOTAN_ASSERT(expr, msg)
const BigInt & private_value() const
BigInt get_affine_x() const
const BigInt & get_order() const
ECDH_KA_Operation(const ECDH_PrivateKey &key)
BigInt inverse_mod(const BigInt &n, const BigInt &mod)
const BigInt & get_p() const
bool on_the_curve() const
static SecureVector< byte > encode_1363(const BigInt &n, size_t bytes)