diff options
author | lloyd <[email protected]> | 2009-11-18 18:19:36 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-11-18 18:19:36 +0000 |
commit | 3ab96f66124b18dce49c83eba79ec2790902d89e (patch) | |
tree | 31e8882df7cacf8cc5fdceb2ad101774ebf6e2a0 /src | |
parent | 5e80eff19cc7377d67314c1266a0060f1f201882 (diff) |
Name arguments
Diffstat (limited to 'src')
-rw-r--r-- | src/pubkey/dsa/dsa_op.h | 18 |
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); } |