aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/gost_3410/gost_3410.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pubkey/gost_3410/gost_3410.cpp')
-rw-r--r--src/lib/pubkey/gost_3410/gost_3410.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/pubkey/gost_3410/gost_3410.cpp b/src/lib/pubkey/gost_3410/gost_3410.cpp
index d1f8fc786..f378a7998 100644
--- a/src/lib/pubkey/gost_3410/gost_3410.cpp
+++ b/src/lib/pubkey/gost_3410/gost_3410.cpp
@@ -109,6 +109,11 @@ GOST_3410_PrivateKey::GOST_3410_PrivateKey(RandomNumberGenerator& rng,
std::to_string(p_bits));
}
+std::unique_ptr<Public_Key> GOST_3410_PrivateKey::public_key() const
+ {
+ return std::unique_ptr<Public_Key>(new GOST_3410_PublicKey(domain(), public_point()));
+ }
+
namespace {
BigInt decode_le(const uint8_t msg[], size_t msg_len)