diff options
author | lloyd <[email protected]> | 2010-10-12 19:51:32 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-12 19:51:32 +0000 |
commit | a85f136550c08fc878e3983866af0e6460e980da (patch) | |
tree | e495666a243affb92b8a1c5097d536b22c305580 /src/pbe/pbes2/pbes2.cpp | |
parent | ff2210b035a1598bf99e18a578ff075bece8fbe5 (diff) |
Use size_t in filters
This breaks API for anyone creating their own Filter types, but it had
to happen eventually.
Diffstat (limited to 'src/pbe/pbes2/pbes2.cpp')
-rw-r--r-- | src/pbe/pbes2/pbes2.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pbe/pbes2/pbes2.cpp b/src/pbe/pbes2/pbes2.cpp index 0e8b3fb86..7188e42d7 100644 --- a/src/pbe/pbes2/pbes2.cpp +++ b/src/pbe/pbes2/pbes2.cpp @@ -24,11 +24,11 @@ namespace Botan { /* * Encrypt some bytes using PBES2 */ -void PBE_PKCS5v20::write(const byte input[], u32bit length) +void PBE_PKCS5v20::write(const byte input[], size_t length) { while(length) { - u32bit put = std::min(DEFAULT_BUFFERSIZE, length); + size_t put = std::min(DEFAULT_BUFFERSIZE, length); pipe.write(input, length); flush_pipe(true); length -= put; @@ -75,7 +75,7 @@ void PBE_PKCS5v20::flush_pipe(bool safe_to_skip) SecureVector<byte> buffer(DEFAULT_BUFFERSIZE); while(pipe.remaining()) { - u32bit got = pipe.read(&buffer[0], buffer.size()); + size_t got = pipe.read(&buffer[0], buffer.size()); send(buffer, got); } } |