Line | |
---|
1 | #include "bit.h"
|
---|
2 |
|
---|
3 | /* definition */
|
---|
4 | typedef enum
|
---|
5 | {
|
---|
6 | CHEV_ARIA_128 = 0,
|
---|
7 | CHEV_ARIA_192,
|
---|
8 | CHEV_ARIA_256
|
---|
9 | } CHEV_ARIA_TYPE;
|
---|
10 |
|
---|
11 | typedef 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
|
---|
20 | extern "C" {
|
---|
21 | #endif
|
---|
22 |
|
---|
23 | /* function */
|
---|
24 | int
|
---|
25 | CHEV_ARIA_Initialize (CHEV_ARIA_INFO * info,
|
---|
26 | CHEV_ARIA_TYPE type,
|
---|
27 | byte * inputKey,
|
---|
28 | int keySize);
|
---|
29 |
|
---|
30 | int
|
---|
31 | CHEV_ARIA_Encrypt (CHEV_ARIA_INFO * info,
|
---|
32 | byte * input,
|
---|
33 | int inSize,
|
---|
34 | byte * out,
|
---|
35 | int * outSize);
|
---|
36 |
|
---|
37 | int
|
---|
38 | CHEV_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.