aboutsummaryrefslogtreecommitdiffstats
path: root/src/kdf/kdf1
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/kdf1
parent4a6fd8c70d40f88c8b51127bfa055b66b18e0f7a (diff)
s/u32bit/size_t/ in kdf
Diffstat (limited to 'src/kdf/kdf1')
-rw-r--r--src/kdf/kdf1/kdf1.cpp6
-rw-r--r--src/kdf/kdf1/kdf1.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/kdf/kdf1/kdf1.cpp b/src/kdf/kdf1/kdf1.cpp
index 539d9ed50..f3e4e208f 100644
--- a/src/kdf/kdf1/kdf1.cpp
+++ b/src/kdf/kdf1/kdf1.cpp
@@ -12,9 +12,9 @@ namespace Botan {
/*
* KDF1 Key Derivation Mechanism
*/
-SecureVector<byte> KDF1::derive(u32bit,
- const byte secret[], u32bit secret_len,
- const byte P[], u32bit P_len) const
+SecureVector<byte> KDF1::derive(size_t,
+ const byte secret[], size_t secret_len,
+ const byte P[], size_t P_len) const
{
hash->update(secret, secret_len);
hash->update(P, P_len);
diff --git a/src/kdf/kdf1/kdf1.h b/src/kdf/kdf1/kdf1.h
index 80ea470a9..fd950cd9b 100644
--- a/src/kdf/kdf1/kdf1.h
+++ b/src/kdf/kdf1/kdf1.h
@@ -19,9 +19,9 @@ namespace Botan {
class BOTAN_DLL KDF1 : public KDF
{
public:
- SecureVector<byte> derive(u32bit,
- const byte secret[], u32bit secret_len,
- const byte P[], u32bit P_len) const;
+ SecureVector<byte> derive(size_t,
+ const byte secret[], size_t secret_len,
+ const byte P[], size_t P_len) const;
KDF1(HashFunction* h) : hash(h) {}
KDF1(const KDF1& other) : KDF(), hash(other.hash->clone()) {}