📄 oidlist.h
字号:
/* Copyright 2003-2006, Voltage Security, all rights reserved.
*/
#include "vibe.h"
#include "environment.h"
#include "base.h"
#include "libctx.h"
#ifndef _OID_LIST_H
#define _OID_LIST_H
#ifdef __cplusplus
extern "C" {
#endif
/*=========================================================*/
/* */
/* Identity Schema OID's */
/* */
/*=========================================================*/
/* These are the identity schema OID's.
* Currently we have 1 defined.
*/
/* Key Schema: 822 Mail 2.16.840.1.114334.2.1.1
*/
#define VoltIdSchemaOid822Email \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x02, 0x01, 0x01
#define VoltIdSchemaOid822EmailLen 10
/*=========================================================*/
/* */
/* District-Related OID's */
/* */
/*=========================================================*/
/* District Param Extension: Serial Number
* 2.16.840.1.114334.1.3.2.1
*/
#define VoltParamExtSerialOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x03, 0x02, 0x01
#define VoltParamExtSerialOidBytesLen 11
/* OLD OID, NOT USED ANYMORE.
* District Param Extension: Policy Server Location
* 2.16.840.1.114334.1.3.2.2
*/
#define VoltParamExtOldPolicyOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x03, 0x02, 0x02
#define VoltParamExtOldPolicyOidBytesLen 11
/* OLD OID, NOT USED ANYMORE.
* District Param Extension: ZDR Server Location
* 2.16.840.1.114334.1.3.2.3
*/
#define VoltParamExtOldZdrOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x03, 0x02, 0x03
#define VoltParamExtOldZdrOidBytesLen 11
/* District Param Extension: X.509 Signing Cert Chain
* 2.16.840.1.114334.1.3.2.4
*/
#define VoltParamExtCertChainOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x03, 0x02, 0x04
#define VoltParamExtCertChainOidBytesLen 11
/* District Param Extension: Supported Key Schemas
* 2.16.840.1.114334.1.3.2.5
*/
#define VoltParamExtKeySchemaOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x03, 0x02, 0x05
#define VoltParamExtKeySchemaOidBytesLen 11
/* District Param Extension: District Name
* 2.16.840.1.114334.1.3.2.6
*/
#define VoltParamExtDistNameOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x03, 0x02, 0x06
#define VoltParamExtDistNameOidBytesLen 11
/* District Param Extension: Policy Server Location
* 2.16.840.1.114334.1.3.2.7
*/
#define VoltParamExtPolicySrvOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x03, 0x02, 0x07
#define VoltParamExtPolicySrvOidBytesLen 11
/* District Param Extension: ZDR Server Location
* 2.16.840.1.114334.1.3.2.8
*/
#define VoltParamExtZdrSrvOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x03, 0x02, 0x08
#define VoltParamExtZdrSrvOidBytesLen 11
/* District Param Extension: DSA params 2.16.840.1.114334.1.3.2.9
*/
#define VoltParamExtDsaParamsOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x03, 0x02, 0x09
#define VoltParamExtDsaParamsOidBytesLen 11
/* District Param Extension: ZDR Version 2.16.840.1.114334.1.3.2.10
*/
#define VoltParamExtZdrVersionOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x03, 0x02, 0x0a
#define VoltParamExtZdrVersionOidBytesLen 11
/*=========================================================*/
/* */
/* Cert Related OID's */
/* */
/*=========================================================*/
/* Cert Extension: Identity String
* 2.16.840.1.114334.3.1
*/
#define VoltCertExtIdStringOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x03, 0x01
#define VoltCertExtIdStringOidBytesLen 9
/* Cert extension: Key Usage 2.5.29.15
*/
#define VoltCertExtKeyUsageOidBytes \
0x55, 0x1D, 0x0F
#define VoltCertExtKeyUsageOidBytesLen 3
/* Cert Request Attribute: P9 Extension Request
* 1.2.840.113549.1.9.14
*/
#define VoltCertReqAttrExtReqOidBytes \
0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x0e
#define VoltCertReqAttrExtReqOidBytesLen 9
/* Name Attribute: Common Name 2.5.4.3
*/
#define VoltCommonNameOidBytes \
0x55, 0x04, 0x03
#define VoltCommonNameOidBytesLen 3
/*=========================================================*/
/* */
/* Crypto Algorithm OID's */
/* */
/*=========================================================*/
/* IBE Type 1 curve 2.16.840.1.114334.1.1.1.1
*/
#define VoltBFType1IBECurveOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x01, 0x01, 0x01
#define VoltBFType1IBECurveOidBytesLen 11
/* IBE encrypting and decrypting 2.16.840.1.114334.1.1.2.1
*/
#define VoltIBET1EncOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x01, 0x02, 0x01
#define VoltIBET1EncOidBytesLen 11
/* This is for compatibility with SecureMail client
*/
#define VoltIBET1ClientEncOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x01, 0x01
#define VoltIBET1ClientEncOidBytesLen 10
/* IBE signing and verifying 2.16.840.1.114334.1.1.3.1
*/
#define VoltIBET1SignOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x01, 0x03, 0x01
#define VoltIBET1SignOidBytesLen 11
/* DSA with SHA-1 signing and verifying
* 1.2.840.10040.4.3
*/
#define VoltDsaSHA1OidBytes \
0x2a, 0x86, 0x48, 0xce, 0x38, 0x04, 0x03
#define VoltDsaSHA1OidBytesLen 7
/* SHA-1 1.3.14.3.2.26
*/
#define VoltSHA1OidBytes \
0x2b, 0x0e, 0x03, 0x02, 0x1a
#define VoltSHA1OidBytesLen 5
/* SHA-224 2.16.840.1.101.3.4.2.4
*/
#define VoltSHA224OidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x04
#define VoltSHA224OidBytesLen 9
/* SHA-256 2.16.840.1.101.3.4.2.1
*/
#define VoltSHA256OidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01
#define VoltSHA256OidBytesLen 9
/* SHA-384 2.16.840.1.101.3.4.2.2
*/
#define VoltSHA384OidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x02
#define VoltSHA384OidBytesLen 9
/* SHA-512 2.16.840.1.101.3.4.2.3
*/
#define VoltSHA512OidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x03
#define VoltSHA512OidBytesLen 9
/* HMAC with Sha1 1.3.6.1.5.5.8.1.2
*/
#define VoltHMACSHA1OidBytes \
0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x02
#define VoltHMACSHA1OidBytesLen 8
/* MD5 1.2.840.113549.2.5
*/
#define VoltMD5OidBytes \
0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x02, 0x05
#define VoltMD5OidBytesLen 8
/* HMAC with MD5 1.3.6.1.5.5.8.1.1
*/
#define VoltHMACMD5OidBytes \
0x2B, 0x06, 0x01, 0x05, 0x05, 0x08, 0x01, 0x01
#define VoltHMACMD5OidBytesLen 8
/* AES-128-ECB 2.16.840.1.101.3.4.1.1
* No padding.
*/
#define VoltAES128ECBOidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x01, 0x01
#define VoltAES128ECBOidBytesLen 9
/* AES-192-ECB 2.16.840.1.101.3.4.1.21
* No padding.
*/
#define VoltAES192ECBOidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x01, 0x15
#define VoltAES192ECBOidBytesLen 9
/* AES-256-ECB 2.16.840.1.101.3.4.1.41
* No padding.
*/
#define VoltAES256ECBOidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x01, 0x29
#define VoltAES256ECBOidBytesLen 9
/* AES-128-CBC 2.16.840.1.101.3.4.1.2
* No padding.
*/
#define VoltAES128CBCOidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x01, 0x02
#define VoltAES128CBCOidBytesLen 9
/* AES-192-CBC 2.16.840.1.101.3.4.1.22
* No padding.
*/
#define VoltAES192CBCOidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x01, 0x16
#define VoltAES192CBCOidBytesLen 9
/* AES-256-CBC 2.16.840.1.101.3.4.1.42
* No padding.
*/
#define VoltAES256CBCOidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x01, 0x2a
#define VoltAES256CBCOidBytesLen 9
/* AES-128-OFB 2.16.840.1.101.3.4.1.3
*/
#define VoltAES128OFBOidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x01, 0x03
#define VoltAES128OFBOidBytesLen 9
/* AES-192-OFB 2.16.840.1.101.3.4.1.23
*/
#define VoltAES192OFBOidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x01, 0x17
#define VoltAES192OFBOidBytesLen 9
/* AES-256-OFB 2.16.840.1.101.3.4.1.43
*/
#define VoltAES256OFBOidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x01, 0x2b
#define VoltAES256OFBOidBytesLen 9
/* AES-128-CFB 2.16.840.1.101.3.4.1.4
*/
#define VoltAES128CFBOidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x01, 0x04
#define VoltAES128CFBOidBytesLen 9
/* AES-192-CFB 2.16.840.1.101.3.4.1.24
*/
#define VoltAES192CFBOidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x01, 0x18
#define VoltAES192CFBOidBytesLen 9
/* AES-256-CFB 2.16.840.1.101.3.4.1.44
*/
#define VoltAES256CFBOidBytes \
0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x01, 0x2c
#define VoltAES256CFBOidBytesLen 9
/* DES-CBC-Pad 1.3.14.3.2.7
* The padding is the type defined in PKCS #5.
*/
#define VoltDesCbcPadOidBytes \
0x2b, 0x0e, 0x03, 0x02, 0x07
#define VoltDesCbcPadOidBytesLen 5
/* TripleDES-EDE-CBC-Pad 1.2.840.113549.3.7
* The padding is the type defined in PKCS #5.
*/
#define Volt3DesEDECBCPadOidBytes \
0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x03, 0x07
#define Volt3DesEDECBCPadOidBytesLen 8
/* Prime Field OID
* prime-field is id-fieldType 1 1.2.840.10045.1.1
*/
#define VoltPrimeFieldOidBytes \
0x2a, 0x86, 0x48, 0xce, 0x3d, 0x01, 0x01
#define VoltPrimeFieldOidBytesLen 7
/*=========================================================*/
/* */
/* Key OID's */
/* */
/*=========================================================*/
/* IBE Type 1 Private Key, v2 2.16.840.1.114334.1.2.5
*/
#define VoltIBET1PriKeyOidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x02, 0x05
#define VoltIBET1PriKeyOidBytesLen 10
/* IBE Private Key format #1 2.16.840.1.114334.1.2.1.1
*/
#define VoltIBEPriKeyForm1OidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x02, 0x01, 0x01
#define VoltIBEPriKeyForm1OidBytesLen 11
/* IBE Private Key format #2 2.16.840.1.114334.1.2.1.2
*/
#define VoltIBEPriKeyForm2OidBytes \
0x60, 0x86, 0x48, 0x01, 0x86, 0xfd, 0x1e, 0x01, 0x02, 0x01, 0x02
#define VoltIBEPriKeyForm2OidBytesLen 11
/* DSA Public or Private keys X9.57
* 1.2.840.10040.4.1
*/
#define VoltDsaKeyOidBytes \
0x2a, 0x86, 0x48, 0xce, 0x38, 0x04, 0x01
#define VoltDsaKeyOidBytesLen 7
/*=========================================================*/
/* */
/* PKCS #7 OID's */
/* */
/*=========================================================*/
#define VoltP7DataOidBytes \
0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x07, 0x01
#define VoltP7DataOidBytesLen 9
#define VoltP7SignDataOidBytes \
0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x07, 0x02
#define VoltP7SignDataOidBytesLen 9
#define VoltP7EnvDataOidBytes \
0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x07, 0x03
#define VoltP7EnvDataOidBytesLen 9
/* Attribute OID's.
*/
#define VoltIdAtNameOidBytes \
0x55, 0x04, 0x29
#define VoltIdAtNameOidBytesLen 3
#define VoltP9AtContentTypeOidBytes \
0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x03
#define VoltP9AtContentTypeOidBytesLen 9
#define VoltP9AtDigestOidBytes \
0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x04
#define VoltP9AtDigestOidBytesLen 9
#define VoltP9AtSignTimeOidBytes \
0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x05
#define VoltP9AtSignTimeOidBytesLen 9
#ifdef __cplusplus
}
#endif
#endif /* _OID_LIST_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -