]> git.cryptolib.org Git - avr-crypto-lib.git/blob - cast6/cast6.h
970bb3b83242747624a294baafe166a7c38a675d
[avr-crypto-lib.git] / cast6 / cast6.h
1 #ifndef CAST6_H_
2 #define CAST6_H_
3
4 #include <stdint.h>
5
6 #define CAST6_ROUNDS 12
7
8 /* size of this is 222 byte (HUGE) */
9 typedef struct cast6_ctx_st{
10         uint32_t        km[12][4];
11         uint8_t         krx[4*12*5/8]; /* these are packed */
12 } cast6_ctx_t;
13
14
15
16 void cast6_enc(void *buffer, const cast6_ctx_t *ctx);
17 void cast6_dec(void *buffer, const cast6_ctx_t *ctx);
18 void cast6_init(const void *key, uint16_t keysize_b, cast6_ctx_t *ctx);
19
20
21 #endif /*CAST6_H_*/
22