Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

aes.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2002, 2003 Bob Deblier
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2.1 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the Free Software
00016  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  *
00018  */
00019 
00026 #ifndef _AES_H
00027 #define _AES_H
00028 
00029 #include "beecrypt.h"
00030 #include "aesopt.h"
00031 
00035 typedef struct
00036 {
00040     uint32_t k[64];
00044     uint32_t nr;
00048     uint32_t fdback[4];
00049 } aesParam;
00050 
00051 #ifdef __cplusplus
00052 extern "C" {
00053 #endif
00054 
00058 extern const BEECRYPTAPI blockCipher aes;
00059 
00070 BEECRYPTAPI
00071 int         aesSetup   (aesParam* ap, const byte* key, size_t keybits, cipherOperation op);
00072 
00080 BEECRYPTAPI
00081 int         aesSetIV   (aesParam* ap, const byte* iv);
00082 
00091 BEECRYPTAPI
00092 int         aesEncrypt (aesParam* ap, uint32_t* dst, const uint32_t* src);
00093 
00102 BEECRYPTAPI
00103 int         aesDecrypt (aesParam* ap, uint32_t* dst, const uint32_t* src);
00104 
00105 BEECRYPTAPI
00106 uint32_t*   aesFeedback(aesParam* ap);
00107 
00108 #ifdef __cplusplus
00109 }
00110 #endif
00111 
00112 #endif

Generated on Wed Mar 24 13:56:53 2004 for BeeCrypt by doxygen 1.3.6