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