aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
parentc17ef3dd93bddc7afe3cee1cc4a413f21e93793c (diff)
Inline simple DSA funcs
Diffstat (limited to 'src')
-rw-r--r--src/pubkey/dsa/dsa.cpp18
-rw-r--r--src/pubkey/dsa/dsa.h9
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) :