giftb128.h 406 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#ifndef GIFT128_H_
#define GIFT128_H_

#define KEY_SIZE    16
#define GIFT128_BLOCK_SIZE  16

typedef unsigned char u8;
typedef unsigned int u32;

typedef struct param_128 {
    u32 ctr;
    u8 nonce[12];
    u32 rkey[80];
} param_128;

extern void gift128_keyschedule(const u8* key, u32* rkey);
extern void giftb128_encrypt_block(u8* out_block, const u32* rkey, const u8* in_block);

#endif  // GIFT128_H_