des.h

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

H
30
字号
#ifndef __DRSEC_DES_H
#define __DRSEC_DES_H

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

#ifndef u8
#define u8 unsigned char
#endif 

#ifndef u32
#define u32 unsigned long
#endif

int ds_desKeySetup(u32 *rk, const u8 *key, int keyLen, u32 *flags);
void ds_desEncryptBlock (u32 *rk, u8 *plain ,u8 *cipher);
void ds_desDecryptBlock (u32 *rk, u8 *cipher,u8 *plain );

int ds_des3KeySetup(u32 *rk, const u8 *key, int keyLen, u32 *flags);
void ds_des3EncryptBlock (u32 *rk, u8 *plain ,u8 *cipher);
void ds_des3DecryptBlock (u32 *rk, u8 *cipher,u8 *plain );

#if defined(__cplusplus)
}
#endif

#endif /* __DRSEC_DES_H */

⌨️ 快捷键说明

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