summaryrefslogtreecommitdiff
path: root/hc128.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-07-06 00:11:10 -0400
committerJeffrey Walton <noloader@gmail.com>2018-07-06 00:11:10 -0400
commit97a1e8cae2e94f93c9da16b637a45612af224590 (patch)
treee0890897adb0f5486c0d894f5e29977e34da9118 /hc128.h
parent320c68ecbf7f986b401e250fab124fd2effa5dc0 (diff)
downloadcryptopp-git-97a1e8cae2e94f93c9da16b637a45612af224590.tar.gz
Use SecBlock for keys and IVs
Diffstat (limited to 'hc128.h')
-rw-r--r--hc128.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/hc128.h b/hc128.h
index 205f6b08..6c2c5b0d 100644
--- a/hc128.h
+++ b/hc128.h
@@ -41,12 +41,12 @@ protected:
void SetupUpdate();
private:
- word32 m_T[1024]; /* P[i] = T[i]; Q[i] = T[1024+i];*/
- word32 m_X[16];
- word32 m_Y[16];
- word32 m_key[8];
- word32 m_iv[8];
- word32 m_ctr; /*counter1024 = i mod 1024 at the i-th step */
+ FixedSizeSecBlock<word32, 16> m_X;
+ FixedSizeSecBlock<word32, 16> m_Y;
+ FixedSizeSecBlock<word32, 8> m_key;
+ FixedSizeSecBlock<word32, 8> m_iv;
+ word32 m_T[1024];
+ word32 m_ctr;
};
/// \brief HC-128 stream cipher