s3c2510des.h

来自「S3c2510下的VXWORKS的BSP源代码(包括了以太网、串口、USB等等驱」· C头文件 代码 · 共 53 行

H
53
字号
/* s3c2510Des.h - SAMSUNG S3C2510 DES/3DES header */

/* Copyright 2002 SAMSUNG ELECTRONICS */

/*
modification history
--------------------
01a,15apr02,jmLee   created.
*/


#ifndef __INCs3c2510Desh
#define __INCs3c2510Desh

#ifdef  __cplusplus
extern "C" {
#endif


/* DES/3DES Definitions */

#define DES_3DES                                            /* Support 3DES Mode */
#define DES_CBC                                             /* Support CBC Mode */
#define DES_4WORD                                           /* Support 4WORD Mode */
#define DES_GDMA                                            /* Support GDMA Mode */
#define DES_FALLING                                         /* Support Falling Mode */

#define DES_IGDMA                       1                   /* GDMA for DES Input */
#define DES_OGDMA                       0                   /* GDMA for DES Output */


/* Function Prototypes */

#if defined(__STDC__) || defined(__cplusplus)

IMPORT STATUS   s3c2510DesInit(void);
IMPORT STATUS   s3c2510DesRun(UCHAR *inBuffer, UCHAR *outBuffer, int length, UINT32 key1L, UINT32 key1R, UINT32 key2L, UINT32 key2R, UINT32 key3L, UINT32 key3R, UINT32 ivL, UINT32 ivR, BOOL bEncrypt);


#else  /* defined(__STDC__) || defined(__cplusplus) */

IMPORT STATUS   s3c2510DesInit();
IMPORT STATUS   s3c2510DesRun();

#endif  /* defined(__STDC__) || defined(__cplusplus) */


#ifdef __cplusplus
}
#endif

#endif  /* __INCs3c2510Desh */

⌨️ 快捷键说明

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