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

📄 dsaparamsder.h

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

#include "vibe.h"
#include "environment.h"
#include "base.h"
#include "libctx.h"
#include "derhelp.h"
#include "oidlist.h"
#include "algid.h"

#ifndef _DSA_PARAMS_DER_H
#define _DSA_PARAMS_DER_H

#ifdef __cplusplus
extern "C" {
#endif

/* A DSA Parameter set is defined as follows (many standards)
 * Dss-Parms ::= SEQUENCE {
 *   prime      INTEGER,
 *   subprime   INTEGER,
 *   base       INTEGER  }
 */
typedef struct
{
  ASN1_INTEGER *prime;
  ASN1_INTEGER *subprime;
  ASN1_INTEGER *base;
} Asn1DsaParams;

DECLARE_ASN1_FUNCTIONS (Asn1DsaParams)

/* Some apps may encode a DSA pub key as follows.
 * SEQUENCE {
 *   y          INTEGER,
 *   prime      INTEGER,
 *   subprime   INTEGER,
 *   base       INTEGER  }
 */
typedef struct
{
  ASN1_INTEGER *pubVal;
  ASN1_INTEGER *prime;
  ASN1_INTEGER *subprime;
  ASN1_INTEGER *base;
} Asn1DsaPubAndParams;

DECLARE_ASN1_FUNCTIONS (Asn1DsaPubAndParams)

#ifdef __cplusplus
}
#endif

#endif /* _DSA_PARAMS_DER_H */

⌨️ 快捷键说明

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