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

📄 conf.h

📁 RMI的处理器au1200系列所用的BOOTLOAD,包括SD卡启动USB启动硬盘启动网络启动,并初始化硬件的所有参数,支持内核调试.
💻 H
字号:
#ifndef __CONF_H_#define __CONF_H_/* configurable */#define NUMSIG		 3	/* number of used signatures */					 /* default: 3; test: 1 */#define MY_SIGSIZE	512	/* signature size in bit */#define MY_HASHSIZE	160	/* hash size in bit *//* not configurable */#define MY_SIGFAIL	-3	/* signature failure */#define MY_ERR		-2	/* function failed */#define MY_PARMERR	-1	/* illegal input parameter */#define MY_OK		 0	/* signature matches */#define MY_KEYSIZE	128	/* AES key length in bit */#define MY_BLOCKSIZE	128	/* AES blocksize in bit *//* derived values */#define MY_SIGOFF	(MY_KEYSIZE/8)	/* offset for signatures */					/* (after session key */#define MY_HEADSIZE	((MY_SIGOFF+NUMSIG*MY_SIGSIZE/8+1+3) & ~03)					/* header size in bytes */#define MY_MODULSIZE	(MY_SIGSIZE/8+1)					/* size of public key modulus field */#ifdef MSDOS#include "aes_api.h"#include "sha1.h"#include "bn.h"			/* for sizeof(BIGNUM) */#else#include "Aes/aes_api.h"#include "Sha/sha1.h"#include "Bn/bn.h"		/* for sizeof(BIGNUM) */#endif/* data types */struct MY_WORKSPACE {    unsigned char Rkeys[MAXROUNDS + 1][4][MAXBC];    unsigned char sigbuf[NUMSIG][MY_SIGSIZE / 8];    unsigned char Hash[NUMSIG][MY_HASHSIZE / 8];    unsigned char scratchbuf[1024];    BIGNUM bn_buf[32];    SHA1_CTX sha1_ctx[NUMSIG];    /* added static memory for holding the Iv for AES */    unsigned char AesOfbDecryptIv[MY_BLOCKSIZE / 8];};typedef struct MY_WORKSPACE dve_workspace_t;/* function types */extern BIGNUM *sps_dve_get_valbuf(int requ_size);#endif				/* __CONF_H_ */

⌨️ 快捷键说明

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