From 3ab96f66124b18dce49c83eba79ec2790902d89e Mon Sep 17 00:00:00 2001 From: lloyd Date: Wed, 18 Nov 2009 18:19:36 +0000 Subject: Name arguments --- src/pubkey/dsa/dsa_op.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'src/pubkey/dsa') 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 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 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 sign(const byte[], u32bit, const BigInt&) const; + bool verify(const byte msg[], u32bit msg_len, + const byte sig[], u32bit sig_len) const; + + SecureVector sign(const byte msg[], u32bit msg_len, + const BigInt& k) const; DSA_Operation* clone() const { return new Default_DSA_Op(*this); } -- cgit v1.2.3