aboutsummaryrefslogtreecommitdiffstats
path: root/src/kdf/kdf.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-12 16:23:03 +0000
committerlloyd <[email protected]>2010-10-12 16:23:03 +0000
commite3e02712563e03fbfd6b474cfaa7c0dfdf08f267 (patch)
tree2d5049051b774cd902b6658781543ce4dc9834fe /src/kdf/kdf.h
parent4a6fd8c70d40f88c8b51127bfa055b66b18e0f7a (diff)
s/u32bit/size_t/ in kdf
Diffstat (limited to 'src/kdf/kdf.h')
-rw-r--r--src/kdf/kdf.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/kdf/kdf.h b/src/kdf/kdf.h
index ecf7f4621..58d59d351 100644
--- a/src/kdf/kdf.h
+++ b/src/kdf/kdf.h
@@ -25,7 +25,7 @@ class BOTAN_DLL KDF
* @param secret the secret input
* @param salt a diversifier
*/
- SecureVector<byte> derive_key(u32bit key_len,
+ SecureVector<byte> derive_key(size_t key_len,
const MemoryRegion<byte>& secret,
const std::string& salt = "") const;
@@ -35,7 +35,7 @@ class BOTAN_DLL KDF
* @param secret the secret input
* @param salt a diversifier
*/
- SecureVector<byte> derive_key(u32bit key_len,
+ SecureVector<byte> derive_key(size_t key_len,
const MemoryRegion<byte>& secret,
const MemoryRegion<byte>& salt) const;
@@ -46,10 +46,10 @@ class BOTAN_DLL KDF
* @param salt a diversifier
* @param salt_len size of salt in bytes
*/
- SecureVector<byte> derive_key(u32bit key_len,
+ SecureVector<byte> derive_key(size_t key_len,
const MemoryRegion<byte>& secret,
const byte salt[],
- u32bit salt_len) const;
+ size_t salt_len) const;
/**
* Derive a key
@@ -58,9 +58,9 @@ class BOTAN_DLL KDF
* @param secret_len size of secret in bytes
* @param salt a diversifier
*/
- SecureVector<byte> derive_key(u32bit key_len,
+ SecureVector<byte> derive_key(size_t key_len,
const byte secret[],
- u32bit secret_len,
+ size_t secret_len,
const std::string& salt = "") const;
/**
@@ -71,18 +71,18 @@ class BOTAN_DLL KDF
* @param salt a diversifier
* @param salt_len size of salt in bytes
*/
- SecureVector<byte> derive_key(u32bit key_len,
+ SecureVector<byte> derive_key(size_t key_len,
const byte secret[],
- u32bit secret_len,
+ size_t secret_len,
const byte salt[],
- u32bit salt_len) const;
+ size_t salt_len) const;
virtual ~KDF() {}
private:
virtual SecureVector<byte>
- derive(u32bit key_len,
- const byte secret[], u32bit secret_len,
- const byte salt[], u32bit salt_len) const = 0;
+ derive(size_t key_len,
+ const byte secret[], size_t secret_len,
+ const byte salt[], size_t salt_len) const = 0;
};
/**
@@ -91,8 +91,8 @@ class BOTAN_DLL KDF
class BOTAN_DLL MGF
{
public:
- virtual void mask(const byte in[], u32bit in_len,
- byte out[], u32bit out_len) const = 0;
+ virtual void mask(const byte in[], size_t in_len,
+ byte out[], size_t out_len) const = 0;
virtual ~MGF() {}
};