diff options
author | lloyd <[email protected]> | 2010-10-13 00:38:07 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-13 00:38:07 +0000 |
commit | c59d960db6d69bd9c479ec674768b7ec371830b5 (patch) | |
tree | 250385bd1c9c5b4a2afac27cc47d10031965f84b /src/stream/salsa20/salsa20.h | |
parent | 2e42b5aaaf8d817f612518afa91a5bc9d1465eb7 (diff) |
s/u32bit/size_t/ in stream
Diffstat (limited to 'src/stream/salsa20/salsa20.h')
-rw-r--r-- | src/stream/salsa20/salsa20.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stream/salsa20/salsa20.h b/src/stream/salsa20/salsa20.h index 7e6c523cd..2addee9a9 100644 --- a/src/stream/salsa20/salsa20.h +++ b/src/stream/salsa20/salsa20.h @@ -18,11 +18,11 @@ namespace Botan { class BOTAN_DLL Salsa20 : public StreamCipher { public: - void cipher(const byte in[], byte out[], u32bit length); + void cipher(const byte in[], byte out[], size_t length); - void set_iv(const byte iv[], u32bit iv_len); + void set_iv(const byte iv[], size_t iv_len); - bool valid_iv_length(u32bit iv_len) const + bool valid_iv_length(size_t iv_len) const { return (iv_len == 8 || iv_len == 24); } void clear(); @@ -36,7 +36,7 @@ class BOTAN_DLL Salsa20 : public StreamCipher SecureVector<u32bit> state; SecureVector<byte> buffer; - u32bit position; + size_t position; }; } |