blob: 3781ac02b0a117ca497c856f4426aab322c806d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef SMALL_CAMELLIA_H
#define SMALL_CAMELLIA_H
#include "Common/Tcdefs.h"
#ifdef __cplusplus
extern "C" {
#endif
#define CAMELLIA_KS 34 * 8 * 2
/* userKey is always 32-bytes long */
/* size of ks is 34 */
void camellia_set_key(const unsigned __int8 userKey[], unsigned __int8 *ks);
void camellia_encrypt(const unsigned __int8 *inBlock, unsigned __int8 *outBlock, unsigned __int8 *ks);
void camellia_decrypt(const unsigned __int8 *inBlock, unsigned __int8 *outBlock, unsigned __int8 *ks);
#ifdef __cplusplus
}
#endif
#endif /* camellia.h */
|