31 lines
689 B
C
31 lines
689 B
C
#ifndef __ARIA_H__
|
|
#define __ARIA_H__
|
|
|
|
#include "stdlib.h"
|
|
#include "BSDefine.h"
|
|
|
|
typedef struct _ARIA_Key
|
|
{
|
|
int nRoundCnt;
|
|
BYTE pRoundKey[16*17];
|
|
} ARIA_Key, *PARIA_Key;
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void Crypt(const BYTE *i, int Nr, const BYTE *rk, BYTE *o);
|
|
int EncKeySetup(const BYTE *mk, BYTE *rk, int keyBits);
|
|
int DecKeySetup(const BYTE *mk, BYTE *rk, int keyBits);
|
|
|
|
void ARIA_Crypt(const BYTE* pIn, BYTE* pOut, int nIn, ARIA_Key* aria_key);
|
|
void ARIA_EncKeySetup(const BYTE *mk, ARIA_Key* aria_key, int keyBits);
|
|
void ARIA_DecKeySetup(const BYTE *mk, ARIA_Key* aria_key, int keyBits);
|
|
|
|
__declspec(dllexport) void ARIA_test();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif |