-
Notifications
You must be signed in to change notification settings - Fork 0
/
x509_lists.go
55 lines (50 loc) · 1.94 KB
/
x509_lists.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
// Code generated by go generate; DO NOT EDIT.
package pcert
import (
"crypto/x509"
)
var KeyUsages = map[string]x509.KeyUsage{
"CRLSign": x509.KeyUsageCRLSign,
"CertSign": x509.KeyUsageCertSign,
"ContentCommitment": x509.KeyUsageContentCommitment,
"DataEncipherment": x509.KeyUsageDataEncipherment,
"DecipherOnly": x509.KeyUsageDecipherOnly,
"DigitalSignature": x509.KeyUsageDigitalSignature,
"EncipherOnly": x509.KeyUsageEncipherOnly,
"KeyAgreement": x509.KeyUsageKeyAgreement,
"KeyEncipherment": x509.KeyUsageKeyEncipherment,
}
var ExtKeyUsages = map[string]x509.ExtKeyUsage{
"Any": x509.ExtKeyUsageAny,
"ClientAuth": x509.ExtKeyUsageClientAuth,
"CodeSigning": x509.ExtKeyUsageCodeSigning,
"EmailProtection": x509.ExtKeyUsageEmailProtection,
"IPSECEndSystem": x509.ExtKeyUsageIPSECEndSystem,
"IPSECTunnel": x509.ExtKeyUsageIPSECTunnel,
"IPSECUser": x509.ExtKeyUsageIPSECUser,
"MicrosoftCommercialCodeSigning": x509.ExtKeyUsageMicrosoftCommercialCodeSigning,
"MicrosoftKernelCodeSigning": x509.ExtKeyUsageMicrosoftKernelCodeSigning,
"MicrosoftServerGatedCrypto": x509.ExtKeyUsageMicrosoftServerGatedCrypto,
"NetscapeServerGatedCrypto": x509.ExtKeyUsageNetscapeServerGatedCrypto,
"OCSPSigning": x509.ExtKeyUsageOCSPSigning,
"ServerAuth": x509.ExtKeyUsageServerAuth,
"TimeStamping": x509.ExtKeyUsageTimeStamping,
}
var SignatureAlgorithms = []x509.SignatureAlgorithm{
x509.DSAWithSHA1,
x509.DSAWithSHA256,
x509.ECDSAWithSHA1,
x509.ECDSAWithSHA256,
x509.ECDSAWithSHA384,
x509.ECDSAWithSHA512,
x509.MD2WithRSA,
x509.MD5WithRSA,
x509.PureEd25519,
x509.SHA1WithRSA,
x509.SHA256WithRSA,
x509.SHA256WithRSAPSS,
x509.SHA384WithRSA,
x509.SHA384WithRSAPSS,
x509.SHA512WithRSA,
x509.SHA512WithRSAPSS,
}