summaryrefslogtreecommitdiff
path: root/aria.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-01-23 21:15:26 -0500
committerJeffrey Walton <noloader@gmail.com>2018-01-23 21:15:26 -0500
commit01136e2c7be25cc857dbad274329e51bb8144a83 (patch)
treec86bf51c83763dfd3bcb364cb153f979222d2586 /aria.cpp
parent675575d96039ff840df7519ef9cfdd423a73d7df (diff)
downloadcryptopp-git-01136e2c7be25cc857dbad274329e51bb8144a83.tar.gz
Clear clang-tidy warnings
Diffstat (limited to 'aria.cpp')
-rw-r--r--aria.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/aria.cpp b/aria.cpp
index a53a00c6..922ef309 100644
--- a/aria.cpp
+++ b/aria.cpp
@@ -111,6 +111,9 @@ void ARIA::Base::UncheckedSetKey(const byte *key, unsigned int keylen, const Nam
{
CRYPTOPP_UNUSED(params);
+ m_rk.New(16*17); // round keys
+ m_w.New(4*7); // w0, w1, w2, w3, t and u
+
const byte *mk = key;
byte *rk = m_rk.data();
int Q, q, R, r;
@@ -236,6 +239,10 @@ void ARIA::Base::UncheckedSetKey(const byte *key, unsigned int keylen, const Nam
ARIA_MM(t[0],t[1],t[2],t[3]); ARIA_P(t[0],t[1],t[2],t[3]); ARIA_MM(t[0],t[1],t[2],t[3]);
::memcpy(z, t, 16);
}
+
+ // Silence warnings
+ CRYPTOPP_UNUSED(Q); CRYPTOPP_UNUSED(R);
+ CRYPTOPP_UNUSED(q); CRYPTOPP_UNUSED(r);
}
void ARIA::Base::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const