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/crypto/cast128/cast128.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$       */
    2 /*      $KAME: cast128.h,v 1.7 2001/11/27 09:47:32 sakane Exp $ */
    3 
    4 /*
    5  * heavily modified by Tomomi Suzuki <suzuki@grelot.elec.ryukoku.ac.jp>
    6  */
    7 /*
    8  * The CAST-128 Encryption Algorithm (RFC 2144)
    9  *
   10  * original implementation <Hideo "Sir MaNMOS" Morisita>
   11  * 1997/08/21
   12  */
   13 /*
   14  * Copyright (C) 1997 Hideo "Sir MANMOS" Morishita
   15  * All rights reserved.
   16  *
   17  * Redistribution and use in source and binary forms, with or without
   18  * modification, are permitted provided that the following conditions
   19  * are met:
   20  * 1. Redistributions of source code must retain the above copyright
   21  *    notice, this list of conditions and the following disclaimer.
   22  * 2. Redistributions in binary form must reproduce the above copyright
   23  *    notice, this list of conditions and the following disclaimer in the
   24  *    documentation and/or other materials provided with the distribution.
   25  *
   26  * THIS SOFTWARE IS PROVIDED BY Hideo "Sir MaNMOS" Morishita ``AS IS'' AND
   27  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   28  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   29  * ARE DISCLAIMED.  IN NO EVENT SHALL Hideo "Sir MaNMOS" Morishita BE LIABLE
   30  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
   31  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
   32  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   33  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
   34  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
   35  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   36  * SUCH DAMAGE.
   37  */
   38 
   39 #ifndef RFC2144_CAST_128_H
   40 #define RFC2144_CAST_128_H
   41 
   42 #include <sys/param.h>
   43 
   44 
   45 #define CAST128_ENCRYPT 1
   46 #define CAST128_DECRYPT 0
   47 
   48 
   49 extern void set_cast128_subkey __P((u_int32_t *, u_int8_t *, int));
   50 extern void cast128_encrypt_round16 __P((u_int8_t *, const u_int8_t *,
   51                                         u_int32_t *));
   52 extern void cast128_decrypt_round16 __P((u_int8_t *, const u_int8_t *,
   53                                         u_int32_t *));
   54 extern void cast128_encrypt_round12 __P((u_int8_t *, const u_int8_t *,
   55                                         u_int32_t *));
   56 extern void cast128_decrypt_round12 __P((u_int8_t *, const u_int8_t *,
   57                                         u_int32_t *));
   58 #endif
   59 

Cache object: b99fb628c84627088659ae3464ffd55e


[ 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.