diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-07-06 00:11:10 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-07-06 00:11:10 -0400 |
commit | 97a1e8cae2e94f93c9da16b637a45612af224590 (patch) | |
tree | e0890897adb0f5486c0d894f5e29977e34da9118 /hc128.cpp | |
parent | 320c68ecbf7f986b401e250fab124fd2effa5dc0 (diff) | |
download | cryptopp-git-97a1e8cae2e94f93c9da16b637a45612af224590.tar.gz |
Use SecBlock for keys and IVs
Diffstat (limited to 'hc128.cpp')
-rw-r--r-- | hc128.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -193,7 +193,7 @@ void HC128Policy::CipherSetKey(const NameValuePairs ¶ms, const byte *userKey {
CRYPTOPP_UNUSED(params);
- GetUserKey(LITTLE_ENDIAN_ORDER, m_key, 4, userKey, keylen);
+ GetUserKey(LITTLE_ENDIAN_ORDER, m_key.begin(), 4, userKey, keylen);
for (unsigned int i = 4; i < 8; i++)
m_key[i] = m_key[i - 4];
}
@@ -238,7 +238,7 @@ void HC128Policy::CipherResynchronize(byte *keystreamBuffer, const byte *iv, siz {
CRYPTOPP_UNUSED(keystreamBuffer);
- GetUserKey(LITTLE_ENDIAN_ORDER, m_iv, 4, iv, length);
+ GetUserKey(LITTLE_ENDIAN_ORDER, m_iv.begin(), 4, iv, length);
for (unsigned int i = 4; i < 8; i++)
m_iv[i] = m_iv[i - 4];
|