diff options
Diffstat (limited to 'src/lib/pubkey/ed25519/ed25519_key.cpp')
-rw-r--r-- | src/lib/pubkey/ed25519/ed25519_key.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/pubkey/ed25519/ed25519_key.cpp b/src/lib/pubkey/ed25519/ed25519_key.cpp index 5f5aff369..bdb6a8547 100644 --- a/src/lib/pubkey/ed25519/ed25519_key.cpp +++ b/src/lib/pubkey/ed25519/ed25519_key.cpp @@ -175,6 +175,8 @@ class Ed25519_Pure_Sign_Operation final : public PK_Ops::Signature return sig; } + size_t signature_length() const override { return 64; } + private: std::vector<uint8_t> m_msg; const Ed25519_PrivateKey& m_key; @@ -191,6 +193,8 @@ class Ed25519_Hashed_Sign_Operation final : public PK_Ops::Signature m_hash = HashFunction::create_or_throw(hash); } + size_t signature_length() const override { return 64; } + void update(const uint8_t msg[], size_t msg_len) override { m_hash->update(msg, msg_len); |