[BACK]Return to cast.h CVS log [TXT][DIR] Up to [local] / sys / crypto

Annotation of sys/crypto/cast.h, Revision 1.1.1.1

1.1       nbrk        1: /*      $OpenBSD: cast.h,v 1.2 2002/03/14 01:26:51 millert Exp $       */
                      2:
                      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_
                     11: #define _CAST_H_
                     12:
                     13: typedef struct {
                     14:        u_int32_t       xkey[32];       /* Key, after expansion */
                     15:        int             rounds;         /* Number of rounds to use, 12 or 16 */
                     16: } cast_key;
                     17:
                     18: void cast_setkey(cast_key * key, u_int8_t * rawkey, int keybytes);
                     19: void cast_encrypt(cast_key * key, u_int8_t * inblock, u_int8_t * outblock);
                     20: void cast_decrypt(cast_key * key, u_int8_t * inblock, u_int8_t * outblock);
                     21:
                     22: #endif /* ifndef _CAST_H_ */

CVSweb