8#ifndef BOTAN_SM2_KEY_H_
9#define BOTAN_SM2_KEY_H_
11#include <botan/ecc_key.h>
39 std::string algo_name()
const override;
46 return (op == PublicKeyOperation::Signature || op == PublicKeyOperation::Encryption);
51 std::unique_ptr<PK_Ops::Verification> create_verification_op(std::string_view params,
52 std::string_view provider)
const override;
55 std::string_view params,
56 std::string_view provider)
const override;
89 std::unique_ptr<Public_Key> public_key()
const override;
92 std::string_view params,
93 std::string_view provider)
const override;
96 std::string_view params,
97 std::string_view provider)
const override;
119 sm2_compute_za(HashFunction& hash, std::string_view user_id, const EC_Group& domain, const EC_Point& pubkey);
const EC_Scalar & _get_da_inv() const
SM2_PublicKey(const EC_Group &dom_par, const EC_Point &public_point)
size_t message_part_size() const override
bool supports_operation(PublicKeyOperation op) const override
size_t message_parts() const override
SM2_PublicKey(const AlgorithmIdentifier &alg_id, std::span< const uint8_t > key_bits)
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)
std::vector< uint8_t > sm2_compute_za(HashFunction &hash, std::string_view user_id, const EC_Group &group, const EC_Point &point)