aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/shake/shake.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/hash/shake/shake.cpp')
-rw-r--r--src/lib/hash/shake/shake.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/hash/shake/shake.cpp b/src/lib/hash/shake/shake.cpp
index 1ff6f1fd3..97ee0c4da 100644
--- a/src/lib/hash/shake/shake.cpp
+++ b/src/lib/hash/shake/shake.cpp
@@ -36,14 +36,14 @@ void SHAKE_128::clear()
m_S_pos = 0;
}
-void SHAKE_128::add_data(const byte input[], size_t length)
+void SHAKE_128::add_data(const uint8_t input[], size_t length)
{
m_S_pos = SHA_3::absorb(SHAKE_128_BITRATE, m_S, m_S_pos, input, length);
}
-void SHAKE_128::final_result(byte output[])
+void SHAKE_128::final_result(uint8_t output[])
{
- std::vector<byte> padding(SHAKE_128_BITRATE / 8 - m_S_pos);
+ std::vector<uint8_t> padding(SHAKE_128_BITRATE / 8 - m_S_pos);
padding[0] = 0x1F;
padding[padding.size()-1] |= 0x80;
@@ -79,14 +79,14 @@ void SHAKE_256::clear()
m_S_pos = 0;
}
-void SHAKE_256::add_data(const byte input[], size_t length)
+void SHAKE_256::add_data(const uint8_t input[], size_t length)
{
m_S_pos = SHA_3::absorb(SHAKE_256_BITRATE, m_S, m_S_pos, input, length);
}
-void SHAKE_256::final_result(byte output[])
+void SHAKE_256::final_result(uint8_t output[])
{
- std::vector<byte> padding(SHAKE_256_BITRATE / 8 - m_S_pos);
+ std::vector<uint8_t> padding(SHAKE_256_BITRATE / 8 - m_S_pos);
padding[0] = 0x1F;
padding[padding.size()-1] |= 0x80;