Commit 3edf1aed authored by Jon Lech Johansen's avatar Jon Lech Johansen

* drms.c: DRMS v2 endian fix.

parent 4450cc66
...@@ -1637,6 +1637,7 @@ static int GetUserKey( void *_p_drms, uint32_t *p_user_key ) ...@@ -1637,6 +1637,7 @@ static int GetUserKey( void *_p_drms, uint32_t *p_user_key )
/* Decrypt and shuffle our data at the same time */ /* Decrypt and shuffle our data at the same time */
InitAES( &aes, p_sys_key ); InitAES( &aes, p_sys_key );
REVERSE( p_sys_key, 4 ); REVERSE( p_sys_key, 4 );
REVERSE( p_sci_data, 1 );
InitShuffle( &shuffle, p_sys_key, p_sci_data[ 0 ] ); InitShuffle( &shuffle, p_sys_key, p_sci_data[ 0 ] );
memcpy( p_sci_key, p_secret, 16 ); memcpy( p_sci_key, p_secret, 16 );
......
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