Commit 1d70768d authored by michael's avatar michael

stealing reimars XOR_BLOCK


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7464 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 10449177
......@@ -40,10 +40,9 @@ static uint8_t alog8[512];
static uint8_t sbox[256];
static uint8_t inv_sbox[256];
static inline void addkey(uint32_t state[4], uint32_t round_key[4]){
int i;
for(i=0; i<4; i++)
state[i] ^= round_key[i]; //partial memory stall? FIXME benchmark
static inline void addkey(uint64_t state[2], uint64_t round_key[2]){
state[0] ^= round_key[0];
state[1] ^= round_key[1];
}
#define SUBSHIFT0(s, box) s[0]=box[s[ 0]]; s[ 4]=box[s[ 4]]; s[ 8]=box[s[ 8]]; s[12]=box[s[12]];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment