source: chevmsgr/trunk/aria.h@ 7

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

암복호 알고리즘 추가

File size: 681 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/* function */
20int
21CHEV_ARIA_Initialize (CHEV_ARIA_INFO * info,
22 CHEV_ARIA_TYPE type,
23 byte * inputKey,
24 int keySize);
25
26int
27CHEV_ARIA_Encrypt (CHEV_ARIA_INFO * info,
28 byte * input,
29 int inSize,
30 byte * out,
31 int * outSize);
32
33int
34CHEV_ARIA_Decrypt (CHEV_ARIA_INFO * info,
35 byte * input,
36 int inSize,
37 byte * out,
38 int * outSize);
39
Note: See TracBrowser for help on using the repository browser.