[FFmpeg-devel] [PATCH 1/3] Allow pre-generation of AES tables.

Reimar Döffinger Reimar.Doeffinger
Sun Jul 4 12:58:20 CEST 2010


On Sat, Jun 26, 2010 at 01:48:43AM +0200, Diego Elio 'Flameeyes' Petten? wrote:
> +    printf("static const uint8_t sbox[256] = {\n");
> +    write_uint8_array(sbox, 256);
> +    printf("};\n");
> +
> +    printf("static const uint8_t inv_sbox[256] = {\n");
> +    write_uint8_array(inv_sbox, 256);
> +    printf("};\n");
> +
> +    printf("static const uint32_t enc_multbl[%d][256] = {\n",
> +	   AES_TABLE_COUNT);
> +    write_uint8_2d_array(enc_multbl, AES_TABLE_COUNT, 256);
> +    printf("};\n");
> +
> +    printf("static const uint32_t dec_multbl[%d][256] = {\n",
> +	   AES_TABLE_COUNT);
> +    write_uint8_2d_array(dec_multbl, AES_TABLE_COUNT, 256);
> +    printf("};\n");

Should be updated to use the new convenience macros for this.



More information about the ffmpeg-devel mailing list