aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/skein/skein_512.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-11 15:28:38 -0500
committerJack Lloyd <[email protected]>2016-12-18 16:48:24 -0500
commitf3cb3edb512bdcab498d825886c3366c341b3f78 (patch)
tree645c73ec295a5a34f25d99903b6d9fa9751e86d3 /src/lib/hash/skein/skein_512.h
parentc1dd21253c1f3188ff45d3ad47698efd08235ae8 (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/hash/skein/skein_512.h')
-rw-r--r--src/lib/hash/skein/skein_512.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/hash/skein/skein_512.h b/src/lib/hash/skein/skein_512.h
index 1f34f1583..32323807e 100644
--- a/src/lib/hash/skein/skein_512.h
+++ b/src/lib/hash/skein/skein_512.h
@@ -47,10 +47,10 @@ class BOTAN_DLL Skein_512 final : public HashFunction
SKEIN_OUTPUT = 63
};
- void add_data(const byte input[], size_t length) override;
- void final_result(byte out[]) override;
+ void add_data(const uint8_t input[], size_t length) override;
+ void final_result(uint8_t out[]) override;
- void ubi_512(const byte msg[], size_t msg_len);
+ void ubi_512(const uint8_t msg[], size_t msg_len);
void initial_block();
void reset_tweak(type_code type, bool is_final);
@@ -59,8 +59,8 @@ class BOTAN_DLL Skein_512 final : public HashFunction
size_t m_output_bits;
std::unique_ptr<Threefish_512> m_threefish;
- secure_vector<u64bit> m_T;
- secure_vector<byte> m_buffer;
+ secure_vector<uint64_t> m_T;
+ secure_vector<uint8_t> m_buffer;
size_t m_buf_pos;
};