The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/opencrypto/rijndael.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $FreeBSD: releng/5.3/sys/opencrypto/rijndael.h 104476 2002-10-04 20:31:23Z sam $        */
    2 /*      $OpenBSD: rijndael.h,v 1.7 2001/12/19 17:42:24 markus Exp $ */
    3 
    4 /**
    5  * rijndael-alg-fst.h
    6  *
    7  * @version 3.0 (December 2000)
    8  *
    9  * Optimised ANSI C code for the Rijndael cipher (now AES)
   10  *
   11  * @author Vincent Rijmen <vincent.rijmen@esat.kuleuven.ac.be>
   12  * @author Antoon Bosselaers <antoon.bosselaers@esat.kuleuven.ac.be>
   13  * @author Paulo Barreto <paulo.barreto@terra.com.br>
   14  *
   15  * This code is hereby placed in the public domain.
   16  *
   17  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ''AS IS'' AND ANY EXPRESS
   18  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
   19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   20  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE
   21  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   22  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   23  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
   24  * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
   25  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
   26  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
   27  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   28  */
   29 #ifndef __RIJNDAEL_H
   30 #define __RIJNDAEL_H
   31 
   32 #define MAXKC   (256/32)
   33 #define MAXKB   (256/8)
   34 #define MAXNR   14
   35 
   36 typedef unsigned char   u8;
   37 typedef unsigned short  u16;
   38 typedef unsigned int    u32;
   39 
   40 /*  The structure for key information */
   41 typedef struct {
   42         int     decrypt;
   43         int     Nr;                     /* key-length-dependent number of rounds */
   44         u32     ek[4*(MAXNR + 1)];      /* encrypt key schedule */
   45         u32     dk[4*(MAXNR + 1)];      /* decrypt key schedule */
   46 } rijndael_ctx;
   47 
   48 void     rijndael_set_key(rijndael_ctx *, u_char *, int, int);
   49 void     rijndael_decrypt(rijndael_ctx *, u_char *, u_char *);
   50 void     rijndael_encrypt(rijndael_ctx *, u_char *, u_char *);
   51 
   52 #endif /* __RIJNDAEL_H */

Cache object: 6f11b9b395efb66fafcdbb8aa3bf72a7


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.