mirror of https://git.videolan.org/git/ffmpeg.git
aes: fix for big endian systems
This was missed in 5d20f19
since CONFIG_SMALL was always broken
for big endian.
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
66fe5970ab
commit
8f175810be
|
@ -54,7 +54,11 @@ static uint32_t enc_multbl[4][256];
|
||||||
static uint32_t dec_multbl[4][256];
|
static uint32_t dec_multbl[4][256];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define ROT(x, s) ((x << s) | (x >> (32-s)))
|
#if HAVE_BIGENDIAN
|
||||||
|
# define ROT(x, s) ((x >> s) | (x << (32-s)))
|
||||||
|
#else
|
||||||
|
# define ROT(x, s) ((x << s) | (x >> (32-s)))
|
||||||
|
#endif
|
||||||
|
|
||||||
static inline void addkey(av_aes_block *dst, const av_aes_block *src,
|
static inline void addkey(av_aes_block *dst, const av_aes_block *src,
|
||||||
const av_aes_block *round_key)
|
const av_aes_block *round_key)
|
||||||
|
|
Loading…
Reference in New Issue