-
Notifications
You must be signed in to change notification settings - Fork 25
/
alias.go
86 lines (61 loc) · 1.81 KB
/
alias.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
package ca
import (
"crypto/x509"
"crypto/x509/pkix"
cryptobin_x509 "github.com/deatil/go-cryptobin/x509"
)
// pkix
type (
// Subject 数据
CAPkixName = pkix.Name
// Extension
CAPkixExtension = pkix.Extension
// CertificateList
CAPkixCertificateList = pkix.CertificateList
// RevokedCertificate
CAPkixRevokedCertificate = pkix.RevokedCertificate
// TBSCertificateList
CAPkixTBSCertificateList = pkix.TBSCertificateList
// RDNSequence
CAPkixRDNSequence = pkix.RDNSequence
// AttributeTypeAndValue 数据
CAPkixAttributeTypeAndValue = pkix.AttributeTypeAndValue
// AlgorithmIdentifier
CAPkixAlgorithmIdentifier = pkix.AlgorithmIdentifier
// AttributeTypeAndValueSET
CAPkixAttributeTypeAndValueSET = pkix.AttributeTypeAndValueSET
)
// x905
type (
// 证书
CACertificate = x509.Certificate
// 证书请求
CACertificateRequest = x509.CertificateRequest
// 配置别名
CAVerifyOptions = x509.VerifyOptions
// KeyUsage
CAKeyUsage = x509.KeyUsage
// ExtKeyUsage
CAExtKeyUsage = x509.ExtKeyUsage
// SignatureAlgorithm
CASignatureAlgorithm = x509.SignatureAlgorithm
// PublicKeyAlgorithm
CAPublicKeyAlgorithm = x509.PublicKeyAlgorithm
)
// sm2-x905
type (
// SM2 证书
SM2CACertificate = cryptobin_x509.Certificate
// SM2 证书请求
SM2CACertificateRequest = cryptobin_x509.CertificateRequest
// 配置别名
SM2CAVerifyOptions = cryptobin_x509.VerifyOptions
// KeyUsage
SM2CAKeyUsage = cryptobin_x509.KeyUsage
// ExtKeyUsage
SM2CAExtKeyUsage = cryptobin_x509.ExtKeyUsage
// SignatureAlgorithm
SM2CASignatureAlgorithm = cryptobin_x509.SignatureAlgorithm
// PublicKeyAlgorithm
SM2CAPublicKeyAlgorithm = cryptobin_x509.PublicKeyAlgorithm
)