Fix "Integer constant is too large for 'long' type"

kalyna.cpp:432: error: integer constant is too large for 'long' type
kalyna.cpp:509: error: integer constant is too large for 'long' type
kalyna.cpp:608: error: integer constant is too large for 'long' type
kalyna.cpp:713: error: integer constant is too large for 'long' type
kalyna.cpp:833: error: integer constant is too large for 'long' type
...
pull/461/head
Jeffrey Walton 2017-08-07 09:46:33 -04:00
parent 086ad70feb
commit 58b731c645
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 1029 additions and 1029 deletions

View File

@ -429,7 +429,7 @@ void Kalyna::Base::SetKey_22(const word64 key[2])
GL128(t1, t2, key); GL128(t1, t2, key);
G0128(t2, ks); G0128(t2, ks);
word64 constant = 0x0001000100010001; word64 constant = W64LIT(0x0001000100010001);
// round 0 // round 0
memcpy(k, key, 16); memcpy(k, key, 16);
@ -506,7 +506,7 @@ void Kalyna::Base::SetKey_24(const word64 key[4])
GL128(t1, t2, ka); GL128(t1, t2, ka);
G0128(t2, ks); G0128(t2, ks);
word64 constant = 0x0001000100010001; word64 constant = W64LIT(0x0001000100010001);
// round 0 // round 0
memcpy(k, key, 256 / 8); memcpy(k, key, 256 / 8);
@ -605,7 +605,7 @@ void Kalyna::Base::SetKey_44(const word64 key[4])
GL256(t1, t2, key); GL256(t1, t2, key);
G0256(t2, ks); G0256(t2, ks);
word64 constant = 0x0001000100010001; word64 constant = W64LIT(0x0001000100010001);
// round 0 // round 0
memcpy(k, key, 32); memcpy(k, key, 32);
@ -710,7 +710,7 @@ void Kalyna::Base::SetKey_48(const word64 key[8])
GL256(t1, t2, ka); GL256(t1, t2, ka);
G0256(t2, ks); G0256(t2, ks);
word64 constant = 0x0001000100010001; word64 constant = W64LIT(0x0001000100010001);
// round 0 // round 0
memcpy(k, key, 512 / 8); memcpy(k, key, 512 / 8);
@ -830,7 +830,7 @@ void Kalyna::Base::SetKey_88(const word64 key[8])
GL512(t1, t2, key); GL512(t1, t2, key);
G0512(t2, ks); G0512(t2, ks);
word64 constant = 0x0001000100010001; word64 constant = W64LIT(0x0001000100010001);
// round 0 // round 0
memcpy(k, key, 512 / 8); memcpy(k, key, 512 / 8);

File diff suppressed because it is too large Load Diff