source: chevmsgr/trunk/aria.h@ 13

Last change on this file since 13 was 13, checked in by cheese, 9 years ago

서버 쪼끔 수정

File size: 749 bytes
Line 
1#include "bit.h"
2
3/* definition */
4typedef enum
5{
6 CHEV_ARIA_128 = 0,
7 CHEV_ARIA_192,
8 CHEV_ARIA_256
9} CHEV_ARIA_TYPE;
10
11typedef struct
12{
13 CHEV_ARIA_TYPE type;
14 int round;
15 byte ek[17][16 /* 128-bits */];
16 byte dk[17][16 /* 128-bits */];
17} CHEV_ARIA_INFO;
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/* function */
24int
25CHEV_ARIA_Initialize (CHEV_ARIA_INFO * info,
26 CHEV_ARIA_TYPE type,
27 byte * inputKey,
28 int keySize);
29
30int
31CHEV_ARIA_Encrypt (CHEV_ARIA_INFO * info,
32 byte * input,
33 int inSize,
34 byte * out,
35 int * outSize);
36
37int
38CHEV_ARIA_Decrypt (CHEV_ARIA_INFO * info,
39 byte * input,
40 int inSize,
41 byte * out,
42 int * outSize);
43
44#ifdef __cplusplus
45}
46#endif
Note: See TracBrowser for help on using the repository browser.