diff options
author | Pierre Ossman <ossman@cendio.se> | 2022-09-10 13:19:41 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2023-02-01 21:17:12 +0100 |
commit | 6881c895ab317bd302addac5f228b7367136017f (patch) | |
tree | 18d1119f59209147d97e873c3dbc9be36e429aaf /common/rdr/AESOutStream.h | |
parent | baca73d03217a1c219d9c4f024ffcd39f85fd322 (diff) | |
download | tigervnc-6881c895ab317bd302addac5f228b7367136017f.tar.gz tigervnc-6881c895ab317bd302addac5f228b7367136017f.zip |
Use stdint types
Avoid having our own custom stuff and instead use the modern, standard
types, for familiarity.
Diffstat (limited to 'common/rdr/AESOutStream.h')
-rw-r--r-- | common/rdr/AESOutStream.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/common/rdr/AESOutStream.h b/common/rdr/AESOutStream.h index e5d6aa7a..f9e4f4da 100644 --- a/common/rdr/AESOutStream.h +++ b/common/rdr/AESOutStream.h @@ -28,7 +28,7 @@ namespace rdr { class AESOutStream : public BufferedOutStream { public: - AESOutStream(OutStream* out, const U8* key, int keySize); + AESOutStream(OutStream* out, const uint8_t* key, int keySize); virtual ~AESOutStream(); virtual void flush(); @@ -36,16 +36,16 @@ namespace rdr { private: virtual bool flushBuffer(); - void writeMessage(const U8* data, size_t length); + void writeMessage(const uint8_t* data, size_t length); int keySize; OutStream* out; - U8* msg; + uint8_t* msg; union { struct EAX_CTX(aes128_ctx) eaxCtx128; struct EAX_CTX(aes256_ctx) eaxCtx256; }; - U8 counter[16]; + uint8_t counter[16]; }; }; |