Eneboo - Documentación para desarrolladores
src/libmysql_std/include/rijndael.h
Ir a la documentación de este archivo.
00001 /* Copyright (C) 2002 MySQL AB
00002 
00003  This program is free software; you can redistribute it and/or modify
00004  it under the terms of the GNU General Public License as published by
00005  the Free Software Foundation; version 2 of the License.
00006 
00007  This program is distributed in the hope that it will be useful,
00008  but WITHOUT ANY WARRANTY; without even the implied warranty of
00009  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010  GNU General Public License for more details.
00011 
00012  You should have received a copy of the GNU General Public License
00013  along with this program; if not, write to the Free Software
00014  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
00015 
00016 
00017 /*
00018   rijndael-alg-fst.h
00019 
00020   @version 3.0 (December 2000)
00021   Optimised ANSI C code for the Rijndael cipher (now AES)
00022   @author Vincent Rijmen <vincent.rijmen@esat.kuleuven.ac.be>
00023   @author Antoon Bosselaers <antoon.bosselaers@esat.kuleuven.ac.be>
00024   @author Paulo Barreto <paulo.barreto@terra.com.br>
00025 
00026   This code is hereby placed in the public domain.
00027   Modified by Peter Zaitsev to fit MySQL coding style.
00028  */
00029 
00030 #define AES_MAXKC       (256/32)
00031 #define AES_MAXKB       (256/8)
00032 #define AES_MAXNR       14
00033 
00034 int rijndaelKeySetupEnc(uint32 rk[/*4*(Nr + 1)*/], const uint8 cipherKey[],
00035                         int keyBits);
00036 int rijndaelKeySetupDec(uint32 rk[/*4*(Nr + 1)*/], const uint8 cipherKey[],
00037                         int keyBits);
00038 void rijndaelEncrypt(const uint32 rk[/*4*(Nr + 1)*/], int Nr,
00039                      const uint8 pt[16], uint8 ct[16]);
00040 void rijndaelDecrypt(const uint32 rk[/*4*(Nr + 1)*/], int Nr,
00041                      const uint8 ct[16], uint8 pt[16]);
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'