All I needed to do was some small patches to the aesGladman code.
In aesGladman/sha2.h:
from this
Code: Select all
#define n_u32(p) sfx_hi(0x##p,s_u32)
#define n_u64(p) sfx_hi(0x##p,s_u64)
/* define an unsigned 32-bit type */
// etc. etc... define sha2_32t
/* define an unsigned 64-bit type */
// etc. etc... define sha2_64t
Code: Select all
#define n_u32(p) 0x##p
#define n_u64(p) 0x##p
typedef irr::u32 sha2_32t;
typedef irr::u64 sha2_64t;
in aesGladman/aeskey.cpp:
anything like
Code: Select all
cx->ks[4] = ff(ss[4] = word_in(in_key, 4));
Code: Select all
ss[4] = word_in(in_key, 4);
cx->ks[4] = ff(ss[4]);