2009-04-02 19:54:45 +00:00
|
|
|
#ifndef CAST6_H_
|
|
|
|
#define CAST6_H_
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#define CAST6_ROUNDS 12
|
|
|
|
|
|
|
|
/* size of this is 222 byte (HUGE) */
|
2014-02-22 17:00:36 +00:00
|
|
|
typedef struct cast6_ctx_st {
|
|
|
|
uint32_t km[12][4];
|
|
|
|
uint8_t krx[4 * 12 * 5 / 8]; /* these are packed */
|
2009-04-02 19:54:45 +00:00
|
|
|
} cast6_ctx_t;
|
|
|
|
|
2013-02-17 09:44:36 +00:00
|
|
|
void cast6_enc(void *buffer, const cast6_ctx_t *ctx);
|
|
|
|
void cast6_dec(void *buffer, const cast6_ctx_t *ctx);
|
|
|
|
void cast6_init(const void *key, uint16_t keysize_b, cast6_ctx_t *ctx);
|
2009-04-02 19:54:45 +00:00
|
|
|
|
|
|
|
#endif /*CAST6_H_*/
|
|
|
|
|