mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 08:14:27 +01:00
Style adjustments
This commit is contained in:
parent
d418b0dcba
commit
12e2fbdf29
@ -235,8 +235,8 @@ static inline void aria_a( uint32_t *a, uint32_t *b,
|
||||
*/
|
||||
static inline void aria_sl( uint32_t *a, uint32_t *b,
|
||||
uint32_t *c, uint32_t *d,
|
||||
const uint8_t sa[0x100], const uint8_t sb[0x100],
|
||||
const uint8_t sc[0x100], const uint8_t sd[0x100] )
|
||||
const uint8_t sa[256], const uint8_t sb[256],
|
||||
const uint8_t sc[256], const uint8_t sd[256] )
|
||||
{
|
||||
*a = ( (uint32_t) sa[ *a & 0xFF] ) ^
|
||||
(((uint32_t) sb[(*a >> 8) & 0xFF]) << 8) ^
|
||||
@ -259,7 +259,7 @@ static inline void aria_sl( uint32_t *a, uint32_t *b,
|
||||
/*
|
||||
* S-Boxes
|
||||
*/
|
||||
static const uint8_t aria_sb1[0x100] =
|
||||
static const uint8_t aria_sb1[256] =
|
||||
{
|
||||
0x63, 0x7C, 0x77, 0x7B, 0xF2, 0x6B, 0x6F, 0xC5, 0x30, 0x01, 0x67, 0x2B,
|
||||
0xFE, 0xD7, 0xAB, 0x76, 0xCA, 0x82, 0xC9, 0x7D, 0xFA, 0x59, 0x47, 0xF0,
|
||||
@ -285,7 +285,7 @@ static const uint8_t aria_sb1[0x100] =
|
||||
0xB0, 0x54, 0xBB, 0x16
|
||||
};
|
||||
|
||||
static const uint8_t aria_sb2[0x100] =
|
||||
static const uint8_t aria_sb2[256] =
|
||||
{
|
||||
0xE2, 0x4E, 0x54, 0xFC, 0x94, 0xC2, 0x4A, 0xCC, 0x62, 0x0D, 0x6A, 0x46,
|
||||
0x3C, 0x4D, 0x8B, 0xD1, 0x5E, 0xFA, 0x64, 0xCB, 0xB4, 0x97, 0xBE, 0x2B,
|
||||
@ -311,7 +311,7 @@ static const uint8_t aria_sb2[0x100] =
|
||||
0xAF, 0xBA, 0xB5, 0x81
|
||||
};
|
||||
|
||||
static const uint8_t aria_is1[0x100] =
|
||||
static const uint8_t aria_is1[256] =
|
||||
{
|
||||
0x52, 0x09, 0x6A, 0xD5, 0x30, 0x36, 0xA5, 0x38, 0xBF, 0x40, 0xA3, 0x9E,
|
||||
0x81, 0xF3, 0xD7, 0xFB, 0x7C, 0xE3, 0x39, 0x82, 0x9B, 0x2F, 0xFF, 0x87,
|
||||
@ -337,7 +337,7 @@ static const uint8_t aria_is1[0x100] =
|
||||
0x55, 0x21, 0x0C, 0x7D
|
||||
};
|
||||
|
||||
static const uint8_t aria_is2[0x100] =
|
||||
static const uint8_t aria_is2[256] =
|
||||
{
|
||||
0x30, 0x68, 0x99, 0x1B, 0x87, 0xB9, 0x21, 0x78, 0x50, 0x39, 0xDB, 0xE1,
|
||||
0x72, 0x09, 0x62, 0x3C, 0x3E, 0x7E, 0x5E, 0x8E, 0xF1, 0xA0, 0xCC, 0xA3,
|
||||
|
Loading…
Reference in New Issue
Block a user