19 std::string
algo_name()
const override {
return "ECDSA"; }
25 std::vector<uint8_t> public_key_bits()
const override;
30 std::vector<uint8_t> raw_public_key_bits()
const override;
34 return op == PublicKeyOperation::Signature;
37 std::unique_ptr<PK_Ops::Verification> create_verification_op(std::string_view params,
38 std::string_view provider)
const override;
63 throw Not_Implemented(
"Cannot generate a new TPM-based keypair from this asymmetric key");
77 static std::unique_ptr<TPM2::PrivateKey> create_unrestricted_transient(
const std::shared_ptr<Context>& ctx,
79 std::span<const uint8_t> auth_value,
84 std::unique_ptr<Public_Key> public_key()
const override;
90 std::vector<uint8_t> public_key_bits()
const override;
95 std::vector<uint8_t> raw_public_key_bits()
const override;
100 std::string_view params,
101 std::string_view provider)
const override;
108 const TPM2B_PUBLIC* public_blob,
109 std::span<const uint8_t> private_blob = {});
113 std::pair<EC_Group, EC_AffinePoint> public_key,
114 std::span<const uint8_t> private_blob = {});