aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/modes/stream_mode.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-18 16:53:10 -0500
committerJack Lloyd <[email protected]>2016-12-18 16:53:25 -0500
commit5eca80aa3336dc49c721e9c6404f531f2e290537 (patch)
tree645c73ec295a5a34f25d99903b6d9fa9751e86d3 /src/lib/modes/stream_mode.h
parentc1dd21253c1f3188ff45d3ad47698efd08235ae8 (diff)
parentf3cb3edb512bdcab498d825886c3366c341b3f78 (diff)
Merge GH #771 Use cstdint integer types
Diffstat (limited to 'src/lib/modes/stream_mode.h')
-rw-r--r--src/lib/modes/stream_mode.h6
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);
}