"Fossies" - the Fresh Open Source Software Archive

Member "libmcrypt-2.5.8/modules/algorithms/cast-128.h" (9 Mar 2002, 592 Bytes) of package /linux/privat/old/libmcrypt-2.5.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "cast-128.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * $Id: cast-128.h,v 1.1.1.1 2000/05/22 13:08:18 nmav Exp $
    3  *
    4  *  CAST-128 in C
    5  *  Written by Steve Reid <sreid@sea-to-sky.net>
    6  *  100% Public Domain - no warranty
    7  *  Released 1997.10.11
    8  */
    9 
   10 #ifndef _CAST_H_INCLUDED
   11 #define _CAST_H_INCLUDED
   12 
   13 #define CAST_MIN_KEYSIZE 5
   14 #define CAST_MAX_KEYSIZE 16
   15 #define CAST_BLOCKSIZE 8
   16 
   17 #define CAST_SMALL_KEY 10
   18 #define CAST_SMALL_ROUNDS 12
   19 #define CAST_FULL_ROUNDS 16
   20 
   21 typedef struct cast_key {
   22     word32 xkey[32];    /* Key, after expansion */
   23     unsigned rounds;        /* Number of rounds to use, 12 or 16 */
   24 } CAST_KEY;
   25 
   26 #endif /* ifndef _CAST_H_INCLUDED */
   27