Mark AES as broken for non-clang/gcc because of the use of dynamic array arguments

This commit is contained in:
pancake 2017-01-09 18:19:39 +01:00
parent 5d4f4bcd11
commit 9ae05e864f
2 changed files with 10 additions and 2 deletions

View File

@ -23,7 +23,16 @@ static const ut8 Rcon[30] = {0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
// Expand a user-supplied key material into a session key.
// key - The 128/192/256-bit user-key to use.
//expkey[2][Nr + 1][Nb]
void aes_expkey (const struct aes_state *st, ut32 ***expkey) { //expkey[2][st->rounds + 1][Nb]) {
//void aes_expkey (const struct aes_state *st, ut32 ***expkey) { //expkey[2][st->rounds + 1][Nb]) {
#if defined (__GNUC__)
void aes_expkey (const struct aes_state *st, ut32 expkey[2][st->rounds + 1][Nb]) {
#else
// XXX this is wrong, but at least it compiles
#warning AES broken for non-gcc compilers
void aes_expkey (const struct aes_state *st, ut32 ***expkey) {
#endif
// ut32 expkey[2][st->rounds + 1][Nb];
// memcpy (&expkey, _expkey, 2 * (st->rounds + 1) * Nb);
int ROUND_KEY_COUNT = 4 * (1 + st->rounds);
ut32 tk[st->columns], tt;
st32 idx = 0, t = 0;

View File

@ -368,7 +368,6 @@ int run_ioctl_command(RIO *io, RIODesc *iodesc, const char *buf) {
switch (*buf) {
case 'W':
{
char *cmd = NULL;
if (buf[1] != ' ') {
io->cb_printf ("Write Protect: %d\n", r2k_struct.wp);
io->cb_printf ("Usage:\n");