X-Git-Url: https://git.cryptolib.org/?a=blobdiff_plain;f=cast6%2Fcast6.h;fp=cast6%2Fcast6.h;h=dc3c7bb3993e30928e56108ec741425c6fa95225;hb=3fdf0954404224cef94db2086348b3fa6020aaa4;hp=0000000000000000000000000000000000000000;hpb=4f19c43af8afeb3c569eb7b4aa15907832cf8e5c;p=arm-crypto-lib.git diff --git a/cast6/cast6.h b/cast6/cast6.h new file mode 100644 index 0000000..dc3c7bb --- /dev/null +++ b/cast6/cast6.h @@ -0,0 +1,22 @@ +#ifndef CAST6_H_ +#define CAST6_H_ + +#include + +#define CAST6_ROUNDS 12 + +/* size of this is 222 byte (HUGE) */ +typedef struct cast6_ctx_st{ + uint32_t km[12][4]; + uint8_t krx[4*12*5/8]; /* these are packed */ +} cast6_ctx_t; + + + +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); + + +#endif /*CAST6_H_*/ +