~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to ffmpeg/libavutil/aes.c

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Le Folgoc, Andrew Starr-Bochicchio, Lionel Le Folgoc
  • Date: 2008-12-26 00:10:06 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081226001006-2040ls9680bd1blt
Tags: 1.1.7-0.2ubuntu1
[ Andrew Starr-Bochicchio ]
* Merge from debian-multimedia (LP: #298547), Ubuntu Changes:
 - For ffmpeg-related build-deps, fix versionized dependencies
   as the ubuntu versioning is different than debian-multimedia's.

[ Lionel Le Folgoc ]
* LP: #311412 is fixed since the 1.1.7~rc1-0.1 revision.
* debian/patches/03_ffmpeg.diff: updated to fix FTBFS due to libswscale API
  change (cherry-pick from Gentoo #234383).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * copyright (c) 2007 Michael Niedermayer <michaelni@gmx.at>
3
3
 *
 
4
 * some optimization ideas from aes128.c by Reimar Doeffinger
 
5
 *
4
6
 * This file is part of FFmpeg.
5
7
 *
6
8
 * FFmpeg is free software; you can redistribute it and/or
16
18
 * You should have received a copy of the GNU Lesser General Public
17
19
 * License along with FFmpeg; if not, write to the Free Software
18
20
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
 
 *
20
 
 * some optimization ideas from aes128.c by Reimar Doeffinger
21
21
 */
22
22
 
23
23
#include "common.h"
24
24
#include "aes.h"
25
25
 
26
26
typedef struct AVAES{
 
27
    // Note: round_key[16] is accessed in the init code, but this only
 
28
    // overwrites state, which does not matter (see also r7471).
27
29
    uint8_t round_key[15][4][4];
28
30
    uint8_t state[2][4][4];
29
31
    int rounds;
128
130
    uint8_t  log8[256];
129
131
    uint8_t alog8[512];
130
132
 
131
 
    if(!enc_multbl[4][1023]){
 
133
    if(!enc_multbl[0][sizeof(enc_multbl)/sizeof(enc_multbl[0][0])-1]){
132
134
        j=1;
133
135
        for(i=0; i<255; i++){
134
136
            alog8[i]=
192
194
#ifdef TEST
193
195
#include "log.h"
194
196
 
195
 
int main(){
 
197
#undef random
 
198
 
 
199
int main(void){
196
200
    int i,j;
197
201
    AVAES ae, ad, b;
198
202
    uint8_t rkey[2][16]= {