lavu/aes: align AVAES struct members
This commit is contained in:
parent
15ff5c7215
commit
54cd1ab555
@ -21,6 +21,7 @@
|
|||||||
#ifndef AVUTIL_AES_INTERNAL_H
|
#ifndef AVUTIL_AES_INTERNAL_H
|
||||||
#define AVUTIL_AES_INTERNAL_H
|
#define AVUTIL_AES_INTERNAL_H
|
||||||
|
|
||||||
|
#include "mem.h"
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
typedef union {
|
typedef union {
|
||||||
@ -33,8 +34,8 @@ typedef union {
|
|||||||
typedef struct AVAES {
|
typedef struct AVAES {
|
||||||
// Note: round_key[16] is accessed in the init code, but this only
|
// Note: round_key[16] is accessed in the init code, but this only
|
||||||
// overwrites state, which does not matter (see also commit ba554c0).
|
// overwrites state, which does not matter (see also commit ba554c0).
|
||||||
av_aes_block round_key[15];
|
DECLARE_ALIGNED(16, av_aes_block, round_key)[15];
|
||||||
av_aes_block state[2];
|
DECLARE_ALIGNED(16, av_aes_block, state)[2];
|
||||||
int rounds;
|
int rounds;
|
||||||
void (*crypt)(struct AVAES *a, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int rounds);
|
void (*crypt)(struct AVAES *a, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int rounds);
|
||||||
} AVAES;
|
} AVAES;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user