⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bc_des.h

📁 BestCrypt开源加密原代码
💻 H
字号:
#ifndef __BC_DES
#define __BC_DES

#include "bc_types.h"
#define DES_ECB_ENCRYPT 0
#define DES_ECB_DECRYPT 1

/******* Exported functions *********/

#define KEY_LENGTH_DES          (64)
#define KEY_LENGTH_EXTENDED_DES (128*8)

BOOL
DES_KeyExtend( PUCHAR KeySource,          // 8       8-bit  uchars
               PDWORD KeyDestination );   // (128/4) 32-bit dwords


//
// Declaration of DES in ECB mode, necessary to:
// 1) test the DES implementation;
// 2) create Tripple DES implementation.
//

void DES_ECB_mode( BYTE  *Input,       /* 8 bytes of input data              */
                   BYTE  *Output,      /* 8 bytes of output data             */
                   DWORD *KeySchedule, /* [16][2] array of DWORDs            */ 
                   BYTE  Operation);    /* DES_ECB_ENCRYPT or DES_ECB_DECRYPT */


#endif

⌨️ 快捷键说明

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