mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-30 16:40:57 +00:00
Mark AES as broken for non-clang/gcc because of the use of dynamic array arguments
This commit is contained in:
parent
5d4f4bcd11
commit
9ae05e864f
@ -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;
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user