aes.h

来自「Dr.Sec高速密码算法库Windows版」· C头文件 代码 · 共 30 行

H
30
字号
#ifndef __DRSEC_AES_H
#define __DRSEC_AES_H

#if defined(__cplusplus)
extern "C"
{
#endif

#ifndef u8
#define u8 unsigned char
#endif 

#ifndef u32
#define u32 unsigned long
#endif

int ds_aesKeySetupEnc(u32 *rk, const u8 *key, int keyLen);
int ds_aesKeySetupDec(u32 *rk, const u8 *key, int keyLen);

void ds_aesEncryptBlock (u32 *rk,u8 *plain, u8 *cipher,int rounds);
void ds_aesDecryptBlock (u32 *rk,u8 *cipher,u8 *plain, int rounds);
void ds_aesEncryptBlock128 (u32 *rk,u8 *plain, u8 *cipher);
void ds_aesDecryptBlock128 (u32 *rk,u8 *cipher,u8 *plain );

#if defined(__cplusplus)
}
#endif

#endif /* __DRSEC_AES_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?