diff options
author | Jack Lloyd <[email protected]> | 2018-08-09 14:05:29 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-08-10 10:12:49 -0400 |
commit | 1e18edf2673519c8f8c01dbbaacc5a189f0c0a92 (patch) | |
tree | 40a7c64752842ce9298de220860af38fe80bb882 /src/lib/pubkey/ecgdsa/ecgdsa.cpp | |
parent | fe242c20a01ae2e8a4589c353cdbc080ae629487 (diff) |
Add PK_Signer::signature_length
Diffstat (limited to 'src/lib/pubkey/ecgdsa/ecgdsa.cpp')
-rw-r--r-- | src/lib/pubkey/ecgdsa/ecgdsa.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/pubkey/ecgdsa/ecgdsa.cpp b/src/lib/pubkey/ecgdsa/ecgdsa.cpp index 61b7ae055..7ed876315 100644 --- a/src/lib/pubkey/ecgdsa/ecgdsa.cpp +++ b/src/lib/pubkey/ecgdsa/ecgdsa.cpp @@ -46,6 +46,8 @@ class ECGDSA_Signature_Operation final : public PK_Ops::Signature_with_EMSA secure_vector<uint8_t> raw_sign(const uint8_t msg[], size_t msg_len, RandomNumberGenerator& rng) override; + size_t signature_length() const override { return 2*m_group.get_order_bytes(); } + size_t max_input_bits() const override { return m_group.get_order_bits(); } private: |