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

📄 sha.h

📁 SecuDe是一个由安全应用程序接口组成,对验证机制、证件处理、PEM、X.400报文处理和密钥管理提供支持。SecuDe提供DES、 RSA杂凑函数、密钥生成以及数字签名的生成和核实等多种密码机制。
💻 H
字号:
/* NIST proposed Secure Hash Standard.    Written 2 September 1992, Peter C. Gutmann.   This implementation placed in the public domain.    Modified 1 June 1993, Colin Plumb.   These modifications placed in the public domain.    Comments to pgut1@cs.aukuni.ac.nz */ /* Useful defines/typedefs */ typedef unsigned char   BYTE; /* Since 64-bit machines are the wave of the future, we may as well   support them directly. */#define FORCE32 #ifdef FORCE32 #undef HAVE64 #else   /* !FORCE32 */ #if __alpha     /* Or other machines? */#define HAVE64 1typedef unsigned long WORD64;#endif #if __GNUC__#define HAVE64 1typedef unsigned long long WORD64;#endif #endif  /* !FORCE32 */ #ifdef HAVE64typedef unsigned int WORD32;#elsetypedef unsigned long WORD32;#endif /* The SHS block size and message digest sizes, in bytes */ #define SHS_BLOCKSIZE   64#define SHS_DIGESTSIZE  20 /* The structure for storing SHS info   data[] is placed first in case offsets of 0 are faster   for some reason; it's the most often accessed field. */ typedef struct {        WORD32 data[ 16 ];              /* SHS data buffer */        WORD32 digest[ 5 ];             /* Message digest */#ifdef HAVE64        WORD64 count;#else        WORD32 countHi, countLo;        /* 64-bit bit count */#endif} SHS_INFO;

⌨️ 快捷键说明

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