Use single block for ARIA key

pull/737/head
Jeffrey Walton 2018-11-09 10:16:40 -05:00
parent 28e7baf46b
commit ca9d0f10f6
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 2 additions and 4 deletions

View File

@ -148,13 +148,11 @@ void ARIA::Base::UncheckedSetKey(const byte *key, unsigned int keylen, const Nam
if (keylen == 32)
{
GetBlock<word32, BigEndian, false>k32(mk+16);
k32(w1[0])(w1[1])(w1[2])(w1[3]);
block(w1[0])(w1[1])(w1[2])(w1[3]);
}
else if (keylen == 24)
{
GetBlock<word32, BigEndian, false>k24(mk+16);
k24(w1[0])(w1[1]); w1[2] = w1[3] = 0;
block(w1[0])(w1[1]); w1[2] = w1[3] = 0;
}
else
{