diff options
Diffstat (limited to 'src/pubkey/dsa/dsa.h')
-rw-r--r-- | src/pubkey/dsa/dsa.h | 9 |
1 files changed, 5 insertions, 4 deletions
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) : |