diff options
Diffstat (limited to 'src/pubkey/dsa')
-rw-r--r-- | src/pubkey/dsa/dsa.cpp | 18 | ||||
-rw-r--r-- | src/pubkey/dsa/dsa.h | 9 |
2 files changed, 6 insertions, 21 deletions
diff --git a/src/pubkey/dsa/dsa.cpp b/src/pubkey/dsa/dsa.cpp index 983348baa..91adb83d4 100644 --- a/src/pubkey/dsa/dsa.cpp +++ b/src/pubkey/dsa/dsa.cpp @@ -1,6 +1,6 @@ /* * DSA -* (C) 1999-2008 Jack Lloyd +* (C) 1999-2010 Jack Lloyd * * Distributed under the terms of the Botan license */ @@ -32,22 +32,6 @@ bool DSA_PublicKey::verify(const byte msg[], u32bit msg_len, } /* -* Return the maximum input size in bits -*/ -u32bit DSA_PublicKey::max_input_bits() const - { - return group_q().bits(); - } - -/* -* Return the size of each portion of the sig -*/ -u32bit DSA_PublicKey::message_part_size() const - { - return group_q().bytes(); - } - -/* * Create a DSA private key */ DSA_PrivateKey::DSA_PrivateKey(RandomNumberGenerator& rng, diff --git a/src/pubkey/dsa/dsa.h b/src/pubkey/dsa/dsa.h index 18c99f545..bdeedb1c4 100644 --- a/src/pubkey/dsa/dsa.h +++ b/src/pubkey/dsa/dsa.h @@ -1,6 +1,6 @@ /* * DSA -* (C) 1999-2007 Jack Lloyd +* (C) 1999-2010 Jack Lloyd * * Distributed under the terms of the Botan license */ @@ -24,10 +24,11 @@ class BOTAN_DLL DSA_PublicKey : public PK_Verifying_wo_MR_Key, DL_Group::Format group_format() const { return DL_Group::ANSI_X9_57; } u32bit message_parts() const { return 2; } - u32bit message_part_size() const; + u32bit message_part_size() const { group_q.bytes(); } + u32bit max_input_bits() const { return group_q.bits(); } - bool verify(const byte[], u32bit, const byte[], u32bit) const; - u32bit max_input_bits() const; + bool verify(const byte msg[], u32bit msg_len, + const byte sig[], u32bit sig_len) const; DSA_PublicKey(const AlgorithmIdentifier& alg_id, const MemoryRegion<byte>& key_bits) : |