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

📄 sha224.h

📁 IBE是一种非对称密码技术
💻 H
字号:
/* Copyright 2005-2006, Voltage Security, all rights reserved.
 */

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

#ifndef _SHA_224_H
#define _SHA_224_H

#ifdef __cplusplus
extern "C" {
#endif

typedef struct
{
  VoltAlgorithmObject  *sha256Obj;
  VtAlgorithmImpl      *sha256Impl;
  Pointer               sha256ImplInfo;
} VoltSHA224Ctx;

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

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

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

#define SHA224_INIT_DATA \
    0xc1, 0x05, 0x9e, 0xd8, \
    0x36, 0x7c, 0xd5, 0x07, \
    0x30, 0x70, 0xdd, 0x17, \
    0xf7, 0x0e, 0x59, 0x39, \
    0xff, 0xc0, 0x0b, 0x31, \
    0x68, 0x58, 0x15, 0x11, \
    0x64, 0xf9, 0x8f, 0xa7, \
    0xbe, 0xfa, 0x4f, 0xa4

#ifdef __cplusplus
}
#endif

#endif /* _SHA_224_H */

⌨️ 快捷键说明

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