diff options
Diffstat (limited to 'src/lib/prov/pkcs11/p11_ecdsa.cpp')
-rw-r--r-- | src/lib/prov/pkcs11/p11_ecdsa.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/prov/pkcs11/p11_ecdsa.cpp b/src/lib/prov/pkcs11/p11_ecdsa.cpp index eebb13020..f35da4892 100644 --- a/src/lib/prov/pkcs11/p11_ecdsa.cpp +++ b/src/lib/prov/pkcs11/p11_ecdsa.cpp @@ -52,6 +52,11 @@ secure_vector<uint8_t> PKCS11_ECDSA_PrivateKey::private_key_bits() const return export_key().private_key_bits(); } +std::unique_ptr<Public_Key> PKCS11_ECDSA_PrivateKey::public_key() const + { + return std::unique_ptr<Public_Key>(new ECDSA_PublicKey(domain(), public_point())); + } + namespace { class PKCS11_ECDSA_Signature_Operation final : public PK_Ops::Signature |