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

📄 sha512.h

📁 CROSSCRYPT是FILEDISK的拓展
💻 H
字号:
/* *  sha512.h * *  Written by Jari Ruusu, April 16 2001 * *  Copyright 2001 by Jari Ruusu. *  Redistribution of this file is permitted under the GNU Public License. */#include <sys/types.h>typedef unsigned __int64 u_int64_t;typedef unsigned __int32 u_int32_t;typedef struct {    unsigned char   sha_out[64];    /* results are here, bytes 0...31 */    u_int32_t       sha_H[8];    u_int64_t       sha_blocks;    int             sha_bufCnt;} sha256_context;typedef struct {    unsigned char   sha_out[128];   /* results are here, bytes 0...63 */    u_int64_t       sha_H[8];    u_int64_t       sha_blocks;    u_int64_t       sha_blocksMSB;    int             sha_bufCnt;} sha512_context;/* no sha384_context, use sha512_context *//* 256 bit hash, provides 128 bits of security against collision attacks */extern void sha256_init(sha256_context *);extern void sha256_write(sha256_context *, unsigned char *, int);extern void sha256_final(sha256_context *);extern void sha256_hash_buffer(unsigned char *, int, unsigned char *, int);/* 512 bit hash, provides 256 bits of security against collision attacks */extern void sha512_init(sha512_context *);extern void sha512_write(sha512_context *, unsigned char *, int);extern void sha512_final(sha512_context *);extern void sha512_hash_buffer(unsigned char *, int, unsigned char *, int);/* 384 bit hash, provides 192 bits of security against collision attacks */extern void sha384_init(sha512_context *);/* no sha384_write(), use sha512_write() *//* no sha384_final(), use sha512_final(), result in ctx->sha_out[0...47]  */extern void sha384_hash_buffer(unsigned char *, int, unsigned char *, int);

⌨️ 快捷键说明

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