11#ifndef BOTAN_ED25519_H_
12#define BOTAN_ED25519_H_
14#include <botan/pk_keys.h>
20 std::string
algo_name()
const override {
return "Ed25519"; }
30 std::vector<uint8_t> raw_public_key_bits()
const override;
32 std::vector<uint8_t> public_key_bits()
const override;
51 std::unique_ptr<PK_Ops::Verification> create_verification_op(std::string_view params,
52 std::string_view provider)
const override;
54 std::unique_ptr<PK_Ops::Verification> create_x509_verification_op(
const AlgorithmIdentifier& signature_algorithm,
55 std::string_view provider)
const override;
95 std::unique_ptr<Public_Key> public_key()
const override;
100 std::string_view params,
101 std::string_view provider)
const override;
114 const uint8_t sk[64],
115 const uint8_t domain_sep[],
116 size_t domain_sep_len);
120 const uint8_t sig[64],
121 const uint8_t pk[32],
122 const uint8_t domain_sep[],
123 size_t domain_sep_len);
secure_vector< uint8_t > raw_private_key_bits() const override
std::vector< uint8_t > m_public
const std::vector< uint8_t > & get_public_key() const
std::string algo_name() const override
bool supports_operation(PublicKeyOperation op) const override
size_t key_length() const override
size_t estimated_strength() const override
Ed25519_PublicKey()=default
Ed25519_PublicKey(std::span< const uint8_t > pub)
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)
#define BOTAN_DEPRECATED(msg)
void ed25519_sign(uint8_t sig[64], const uint8_t m[], size_t mlen, const uint8_t sk[64], const uint8_t domain_sep[], size_t domain_sep_len)
void ed25519_gen_keypair(uint8_t *pk, uint8_t *sk, const uint8_t seed[32])
std::vector< T, secure_allocator< T > > secure_vector
bool ed25519_verify(const uint8_t *m, size_t mlen, const uint8_t sig[64], const uint8_t *pk, const uint8_t domain_sep[], size_t domain_sep_len)