diff options
author | Jack Lloyd <[email protected]> | 2016-12-11 15:28:38 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-12-18 16:48:24 -0500 |
commit | f3cb3edb512bdcab498d825886c3366c341b3f78 (patch) | |
tree | 645c73ec295a5a34f25d99903b6d9fa9751e86d3 /src/lib/modes/stream_mode.h | |
parent | c1dd21253c1f3188ff45d3ad47698efd08235ae8 (diff) |
Convert to using standard uintN_t integer types
Renames a couple of functions for somewhat better name consistency,
eg make_u32bit becomes make_uint32. The old typedefs remain for now
since probably lots of application code uses them.
Diffstat (limited to 'src/lib/modes/stream_mode.h')
-rw-r--r-- | src/lib/modes/stream_mode.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/modes/stream_mode.h b/src/lib/modes/stream_mode.h index 83b0543c9..e32044a4b 100644 --- a/src/lib/modes/stream_mode.h +++ b/src/lib/modes/stream_mode.h @@ -27,7 +27,7 @@ class BOTAN_DLL Stream_Cipher_Mode : public Cipher_Mode return sz; } - void finish(secure_vector<byte>& buf, size_t offset) override + void finish(secure_vector<uint8_t>& buf, size_t offset) override { return update(buf, offset); } size_t output_length(size_t input_length) const override { return input_length; } @@ -54,12 +54,12 @@ class BOTAN_DLL Stream_Cipher_Mode : public Cipher_Mode void reset() override { /* no msg state */ return; } private: - void start_msg(const byte nonce[], size_t nonce_len) override + void start_msg(const uint8_t nonce[], size_t nonce_len) override { m_cipher->set_iv(nonce, nonce_len); } - void key_schedule(const byte key[], size_t length) override + void key_schedule(const uint8_t key[], size_t length) override { m_cipher->set_key(key, length); } |