/*1* copyright (c) 2015 Rodger Combs <[email protected]>2*3* This file is part of FFmpeg.4*5* FFmpeg is free software; you can redistribute it and/or6* modify it under the terms of the GNU Lesser General Public7* License as published by the Free Software Foundation; either8* version 2.1 of the License, or (at your option) any later version.9*10* FFmpeg is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU13* Lesser General Public License for more details.14*15* You should have received a copy of the GNU Lesser General Public16* License along with FFmpeg; if not, write to the Free Software17* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA18*/1920#ifndef AVUTIL_AES_INTERNAL_H21#define AVUTIL_AES_INTERNAL_H2223#include "mem.h"24#include <stdint.h>2526typedef union {27uint64_t u64[2];28uint32_t u32[4];29uint8_t u8x4[4][4];30uint8_t u8[16];31} av_aes_block;3233typedef struct AVAES {34// Note: round_key[16] is accessed in the init code, but this only35// overwrites state, which does not matter (see also commit ba554c0).36DECLARE_ALIGNED(16, av_aes_block, round_key)[15];37DECLARE_ALIGNED(16, av_aes_block, state)[2];38int rounds;39void (*crypt)(struct AVAES *a, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int rounds);40} AVAES;4142#endif /* AVUTIL_AES_INTERNAL_H */434445