Mercurial > dropbear
comparison libtomcrypt/src/ciphers/aes/aes_tab.c @ 1711:e9dba7abd939
Merge libtomcrypt v1.18.2
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 10 Jun 2020 23:16:13 +0800 |
parents | 6dba84798cd5 |
children |
comparison
equal
deleted
inserted
replaced
1710:1ff2a1034c52 | 1711:e9dba7abd939 |
---|---|
92 0x65bfbfdaUL, 0xd7e6e631UL, 0x844242c6UL, 0xd06868b8UL, | 92 0x65bfbfdaUL, 0xd7e6e631UL, 0x844242c6UL, 0xd06868b8UL, |
93 0x824141c3UL, 0x299999b0UL, 0x5a2d2d77UL, 0x1e0f0f11UL, | 93 0x824141c3UL, 0x299999b0UL, 0x5a2d2d77UL, 0x1e0f0f11UL, |
94 0x7bb0b0cbUL, 0xa85454fcUL, 0x6dbbbbd6UL, 0x2c16163aUL, | 94 0x7bb0b0cbUL, 0xa85454fcUL, 0x6dbbbbd6UL, 0x2c16163aUL, |
95 }; | 95 }; |
96 | 96 |
97 #ifndef PELI_TAB | 97 #if !defined(PELI_TAB) && defined(LTC_SMALL_CODE) |
98 static const ulong32 Te4[256] = { | 98 static const ulong32 Te4[256] = { |
99 0x63636363UL, 0x7c7c7c7cUL, 0x77777777UL, 0x7b7b7b7bUL, | 99 0x63636363UL, 0x7c7c7c7cUL, 0x77777777UL, 0x7b7b7b7bUL, |
100 0xf2f2f2f2UL, 0x6b6b6b6bUL, 0x6f6f6f6fUL, 0xc5c5c5c5UL, | 100 0xf2f2f2f2UL, 0x6b6b6b6bUL, 0x6f6f6f6fUL, 0xc5c5c5c5UL, |
101 0x30303030UL, 0x01010101UL, 0x67676767UL, 0x2b2b2b2bUL, | 101 0x30303030UL, 0x01010101UL, 0x67676767UL, 0x2b2b2b2bUL, |
102 0xfefefefeUL, 0xd7d7d7d7UL, 0xababababUL, 0x76767676UL, | 102 0xfefefefeUL, 0xd7d7d7d7UL, 0xababababUL, 0x76767676UL, |
1015 | 1015 |
1016 #endif /* ENCRYPT_ONLY */ | 1016 #endif /* ENCRYPT_ONLY */ |
1017 | 1017 |
1018 #endif /* SMALL CODE */ | 1018 #endif /* SMALL CODE */ |
1019 | 1019 |
1020 #ifndef PELI_TAB | |
1020 static const ulong32 rcon[] = { | 1021 static const ulong32 rcon[] = { |
1021 0x01000000UL, 0x02000000UL, 0x04000000UL, 0x08000000UL, | 1022 0x01000000UL, 0x02000000UL, 0x04000000UL, 0x08000000UL, |
1022 0x10000000UL, 0x20000000UL, 0x40000000UL, 0x80000000UL, | 1023 0x10000000UL, 0x20000000UL, 0x40000000UL, 0x80000000UL, |
1023 0x1B000000UL, 0x36000000UL, /* for 128-bit blocks, Rijndael never uses more than 10 rcon values */ | 1024 0x1B000000UL, 0x36000000UL, /* for 128-bit blocks, Rijndael never uses more than 10 rcon values */ |
1024 }; | 1025 }; |
1026 #endif | |
1025 | 1027 |
1026 #endif /* __LTC_AES_TAB_C__ */ | 1028 #endif /* __LTC_AES_TAB_C__ */ |
1027 | 1029 |
1028 /* ref: $Format:%D$ */ | 1030 /* ref: $Format:%D$ */ |
1029 /* git commit: $Format:%H$ */ | 1031 /* git commit: $Format:%H$ */ |