aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/dsa
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-11-18 18:19:36 +0000
committerlloyd <[email protected]>2009-11-18 18:19:36 +0000
commit3ab96f66124b18dce49c83eba79ec2790902d89e (patch)
tree31e8882df7cacf8cc5fdceb2ad101774ebf6e2a0 /src/pubkey/dsa
parent5e80eff19cc7377d67314c1266a0060f1f201882 (diff)
Name arguments
Diffstat (limited to 'src/pubkey/dsa')
-rw-r--r--src/pubkey/dsa/dsa_op.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/pubkey/dsa/dsa_op.h b/src/pubkey/dsa/dsa_op.h
index 0b112c6a1..47a9d09e1 100644
--- a/src/pubkey/dsa/dsa_op.h
+++ b/src/pubkey/dsa/dsa_op.h
@@ -21,11 +21,14 @@ namespace Botan {
class BOTAN_DLL DSA_Operation
{
public:
- virtual bool verify(const byte[], u32bit,
- const byte[], u32bit) const = 0;
- virtual SecureVector<byte> sign(const byte[], u32bit,
- const BigInt&) const = 0;
+ virtual bool verify(const byte msg[], u32bit msg_len,
+ const byte sig[], u32bit sig_len) const = 0;
+
+ virtual SecureVector<byte> sign(const byte msg[], u32bit msg_len,
+ const BigInt& k) const = 0;
+
virtual DSA_Operation* clone() const = 0;
+
virtual ~DSA_Operation() {}
};
@@ -35,8 +38,11 @@ class BOTAN_DLL DSA_Operation
class BOTAN_DLL Default_DSA_Op : public DSA_Operation
{
public:
- bool verify(const byte[], u32bit, const byte[], u32bit) const;
- SecureVector<byte> sign(const byte[], u32bit, const BigInt&) const;
+ bool verify(const byte msg[], u32bit msg_len,
+ const byte sig[], u32bit sig_len) const;
+
+ SecureVector<byte> sign(const byte msg[], u32bit msg_len,
+ const BigInt& k) const;
DSA_Operation* clone() const { return new Default_DSA_Op(*this); }