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/hash/tiger/tiger.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/hash/tiger/tiger.h')
-rw-r--r-- | src/lib/hash/tiger/tiger.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/hash/tiger/tiger.h b/src/lib/hash/tiger/tiger.h index fb0524d44..32ae26258 100644 --- a/src/lib/hash/tiger/tiger.h +++ b/src/lib/hash/tiger/tiger.h @@ -34,19 +34,19 @@ class BOTAN_DLL Tiger final : public MDx_HashFunction */ Tiger(size_t out_size = 24, size_t passes = 3); private: - void compress_n(const byte[], size_t block) override; - void copy_out(byte[]) override; + void compress_n(const uint8_t[], size_t block) override; + void copy_out(uint8_t[]) override; - static void pass(u64bit& A, u64bit& B, u64bit& C, - const secure_vector<u64bit>& M, - byte mul); + static void pass(uint64_t& A, uint64_t& B, uint64_t& C, + const secure_vector<uint64_t>& M, + uint8_t mul); - static const u64bit SBOX1[256]; - static const u64bit SBOX2[256]; - static const u64bit SBOX3[256]; - static const u64bit SBOX4[256]; + static const uint64_t SBOX1[256]; + static const uint64_t SBOX2[256]; + static const uint64_t SBOX3[256]; + static const uint64_t SBOX4[256]; - secure_vector<u64bit> m_X, m_digest; + secure_vector<uint64_t> m_X, m_digest; const size_t m_hash_len, m_passes; }; |