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

📄 sha384.h

📁 voltage 公司提供的一个开发Ibe的工具包
💻 H
字号:
/* Copyright 2005, Voltage Security, all rights reserved.
 */

#include "vibecrypto.h"
#include "environment.h"
#include "base.h"
#include "libctx.h"
#include "sha512.h"

#ifndef _SHA_384_H
#define _SHA_384_H

#ifdef __cplusplus
extern "C" {
#endif

typedef struct
{
  VoltAlgorithmObject  *sha512Obj;
  VtAlgorithmImpl      *sha512Impl;
  Pointer               sha512ImplInfo;
} VoltSHA384Ctx;

/* Implements VDigestInit.
 */
int VOLT_CALLING_CONV SHA384Init VOLT_PROTO_LIST ((
   VoltAlgorithmObject *obj
));

/* Implements VDigestUpdate.
 */
int VOLT_CALLING_CONV SHA384Update VOLT_PROTO_LIST ((
   VoltAlgorithmObject *obj,
   unsigned char *dataToDigest,
   unsigned int dataToDigestLen
));

/* Implements VDigestFinal.
 */
int VOLT_CALLING_CONV SHA384Final VOLT_PROTO_LIST ((
   VoltAlgorithmObject *obj,
   unsigned char *digest
));

#define SHA384_INIT_DATA \
    0xcb, 0xbb, 0x9d, 0x5d, 0xc1, 0x05, 0x9e, 0xd8, \
    0x62, 0x9a, 0x29, 0x2a, 0x36, 0x7c, 0xd5, 0x07, \
    0x91, 0x59, 0x01, 0x5a, 0x30, 0x70, 0xdd, 0x17, \
    0x15, 0x2f, 0xec, 0xd8, 0xf7, 0x0e, 0x59, 0x39, \
    0x67, 0x33, 0x26, 0x67, 0xff, 0xc0, 0x0b, 0x31, \
    0x8e, 0xb4, 0x4a, 0x87, 0x68, 0x58, 0x15, 0x11, \
    0xdb, 0x0c, 0x2e, 0x0d, 0x64, 0xf9, 0x8f, 0xa7, \
    0x47, 0xb5, 0x48, 0x1d, 0xbe, 0xfa, 0x4f, 0xa4

#ifdef __cplusplus
}
#endif

#endif /* _SHA_384_H */

⌨️ 快捷键说明

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