aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/dsa/dsa.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-03-04 18:53:14 +0000
committerlloyd <[email protected]>2010-03-04 18:53:14 +0000
commitb1af7b8d9632d11404940110d39e5ee23637468b (patch)
tree21ff7f81b674cff371c9b6b7233a40fe749eabf5 /src/pubkey/dsa/dsa.h
parentc17ef3dd93bddc7afe3cee1cc4a413f21e93793c (diff)
Inline simple DSA funcs
Diffstat (limited to 'src/pubkey/dsa/dsa.h')
-rw-r--r--src/pubkey/dsa/dsa.h9
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) :