10#ifndef BOTAN_ECDH_KEY_H_
11#define BOTAN_ECDH_KEY_H_
13#include <botan/ecc_key.h>
41 std::string
algo_name()
const override {
return "ECDH"; }
46 std::vector<uint8_t>
public_value()
const {
return public_point().encode(EC_Point_Format::Uncompressed); }
89 std::unique_ptr<Public_Key> public_key()
const override;
92 return ECDH_PublicKey::public_value(EC_Point_Format::Uncompressed);
98 std::string_view params,
99 std::string_view provider)
const override;
ECDH_PrivateKey(RandomNumberGenerator &rng, const EC_Group &domain, const BigInt &x=BigInt::zero())
std::vector< uint8_t > public_value() const override
std::vector< uint8_t > public_value(EC_Point_Format type) const
ECDH_PrivateKey(const AlgorithmIdentifier &alg_id, std::span< const uint8_t > key_bits)
bool supports_operation(PublicKeyOperation op) const override
std::vector< uint8_t > public_value() const
ECDH_PublicKey(const AlgorithmIdentifier &alg_id, std::span< const uint8_t > key_bits)
std::string algo_name() const override
std::vector< uint8_t > public_value(EC_Point_Format format) const
ECDH_PublicKey(const EC_Group &dom_par, const EC_Point &public_point)
int(* final)(unsigned char *, CTX *)
#define BOTAN_DIAGNOSTIC_POP
#define BOTAN_DIAGNOSTIC_PUSH
#define BOTAN_DIAGNOSTIC_IGNORE_INHERITED_VIA_DOMINANCE
#define BOTAN_PUBLIC_API(maj, min)