File nut/include/contrib/crypto/cast5.h


Included Files


Preprocessor definitions

* \file cast5.h * \author Daniel Otte * \date 2006-07-26 * \license GPLv3 or later * \brief Implementation of the CAST5 (aka CAST-128) cipher algorithm as described in RFC 2144 *

#define CAST5_H_

#define BOOL

#define __BOOL

#define __BOOL__


Typedef bool

typedef enum {...} bool
enum  
   {  
      false;  
      true;  
   }  

Typedef cast5_ctx_t

\typedef cast5_ctx_t * \brief CAST-5 context * * A variable of this type may hold a keyschedule for the CAST-5 cipher. * This context is regulary generated by the * cast5_init(uint8_t* key, uint8_t keylength_b, cast5_ctx_t* s) function.

typedef struct cast5_ctx_st cast5_ctx_t

struct cast5_ctx_st  
   {  
      uint32_t mask[16];  
      uint8_t rotl[8];  
      uint8_t roth[2];  
      bool shortkey;  
   }