From e4e6abb78f2287fe44ba83f896e21bf59eca57c9 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 19 Oct 2009 20:20:04 +0000 Subject: Format, add names to params in header --- src/kdf/kdf.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/kdf') diff --git a/src/kdf/kdf.h b/src/kdf/kdf.h index 70f636b6c..67078218f 100644 --- a/src/kdf/kdf.h +++ b/src/kdf/kdf.h @@ -22,6 +22,7 @@ class BOTAN_DLL KDF SecureVector derive_key(u32bit key_len, const MemoryRegion& secret, const std::string& salt = "") const; + SecureVector derive_key(u32bit key_len, const MemoryRegion& secret, const MemoryRegion& salt) const; @@ -33,14 +34,17 @@ class BOTAN_DLL KDF SecureVector derive_key(u32bit key_len, const byte secret[], u32bit secret_len, const std::string& salt = "") const; + SecureVector derive_key(u32bit key_len, const byte secret[], u32bit secret_len, const byte salt[], u32bit salt_len) const; virtual ~KDF() {} private: - virtual SecureVector derive(u32bit, const byte[], u32bit, - const byte[], u32bit) const = 0; + virtual SecureVector + derive(u32bit key_len, + const byte secret[], u32bit secret_len, + const byte salt[], u32bit salt_len) const = 0; }; /* @@ -50,7 +54,7 @@ class BOTAN_DLL MGF { public: virtual void mask(const byte in[], u32bit in_len, - byte out[], u32bit out_len) const = 0; + byte out[], u32bit out_len) const = 0; virtual ~MGF() {} }; -- cgit v1.2.3