github.com/goplus/igop@v0.25.0/pkg/crypto/x509/go120_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.20 && !go1.21 4 // +build go1.20,!go1.21 5 6 package x509 7 8 import ( 9 q "crypto/x509" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "x509", 20 Path: "crypto/x509", 21 Deps: map[string]string{ 22 "bytes": "bytes", 23 "crypto": "crypto", 24 "crypto/aes": "aes", 25 "crypto/cipher": "cipher", 26 "crypto/des": "des", 27 "crypto/dsa": "dsa", 28 "crypto/ecdh": "ecdh", 29 "crypto/ecdsa": "ecdsa", 30 "crypto/ed25519": "ed25519", 31 "crypto/elliptic": "elliptic", 32 "crypto/md5": "md5", 33 "crypto/rsa": "rsa", 34 "crypto/sha1": "sha1", 35 "crypto/sha256": "sha256", 36 "crypto/sha512": "sha512", 37 "crypto/x509/internal/macos": "macOS", 38 "crypto/x509/pkix": "pkix", 39 "encoding/asn1": "asn1", 40 "encoding/hex": "hex", 41 "encoding/pem": "pem", 42 "errors": "errors", 43 "fmt": "fmt", 44 "internal/godebug": "godebug", 45 "io": "io", 46 "math/big": "big", 47 "net": "net", 48 "net/url": "url", 49 "reflect": "reflect", 50 "runtime": "runtime", 51 "strconv": "strconv", 52 "strings": "strings", 53 "sync": "sync", 54 "time": "time", 55 "unicode": "unicode", 56 "unicode/utf16": "utf16", 57 "unicode/utf8": "utf8", 58 "vendor/golang.org/x/crypto/cryptobyte": "cryptobyte", 59 "vendor/golang.org/x/crypto/cryptobyte/asn1": "asn1", 60 }, 61 Interfaces: map[string]reflect.Type{}, 62 NamedTypes: map[string]reflect.Type{ 63 "CertPool": reflect.TypeOf((*q.CertPool)(nil)).Elem(), 64 "Certificate": reflect.TypeOf((*q.Certificate)(nil)).Elem(), 65 "CertificateInvalidError": reflect.TypeOf((*q.CertificateInvalidError)(nil)).Elem(), 66 "CertificateRequest": reflect.TypeOf((*q.CertificateRequest)(nil)).Elem(), 67 "ConstraintViolationError": reflect.TypeOf((*q.ConstraintViolationError)(nil)).Elem(), 68 "ExtKeyUsage": reflect.TypeOf((*q.ExtKeyUsage)(nil)).Elem(), 69 "HostnameError": reflect.TypeOf((*q.HostnameError)(nil)).Elem(), 70 "InsecureAlgorithmError": reflect.TypeOf((*q.InsecureAlgorithmError)(nil)).Elem(), 71 "InvalidReason": reflect.TypeOf((*q.InvalidReason)(nil)).Elem(), 72 "KeyUsage": reflect.TypeOf((*q.KeyUsage)(nil)).Elem(), 73 "PEMCipher": reflect.TypeOf((*q.PEMCipher)(nil)).Elem(), 74 "PublicKeyAlgorithm": reflect.TypeOf((*q.PublicKeyAlgorithm)(nil)).Elem(), 75 "RevocationList": reflect.TypeOf((*q.RevocationList)(nil)).Elem(), 76 "SignatureAlgorithm": reflect.TypeOf((*q.SignatureAlgorithm)(nil)).Elem(), 77 "SystemRootsError": reflect.TypeOf((*q.SystemRootsError)(nil)).Elem(), 78 "UnhandledCriticalExtension": reflect.TypeOf((*q.UnhandledCriticalExtension)(nil)).Elem(), 79 "UnknownAuthorityError": reflect.TypeOf((*q.UnknownAuthorityError)(nil)).Elem(), 80 "VerifyOptions": reflect.TypeOf((*q.VerifyOptions)(nil)).Elem(), 81 }, 82 AliasTypes: map[string]reflect.Type{}, 83 Vars: map[string]reflect.Value{ 84 "ErrUnsupportedAlgorithm": reflect.ValueOf(&q.ErrUnsupportedAlgorithm), 85 "IncorrectPasswordError": reflect.ValueOf(&q.IncorrectPasswordError), 86 }, 87 Funcs: map[string]reflect.Value{ 88 "CreateCertificate": reflect.ValueOf(q.CreateCertificate), 89 "CreateCertificateRequest": reflect.ValueOf(q.CreateCertificateRequest), 90 "CreateRevocationList": reflect.ValueOf(q.CreateRevocationList), 91 "DecryptPEMBlock": reflect.ValueOf(q.DecryptPEMBlock), 92 "EncryptPEMBlock": reflect.ValueOf(q.EncryptPEMBlock), 93 "IsEncryptedPEMBlock": reflect.ValueOf(q.IsEncryptedPEMBlock), 94 "MarshalECPrivateKey": reflect.ValueOf(q.MarshalECPrivateKey), 95 "MarshalPKCS1PrivateKey": reflect.ValueOf(q.MarshalPKCS1PrivateKey), 96 "MarshalPKCS1PublicKey": reflect.ValueOf(q.MarshalPKCS1PublicKey), 97 "MarshalPKCS8PrivateKey": reflect.ValueOf(q.MarshalPKCS8PrivateKey), 98 "MarshalPKIXPublicKey": reflect.ValueOf(q.MarshalPKIXPublicKey), 99 "NewCertPool": reflect.ValueOf(q.NewCertPool), 100 "ParseCRL": reflect.ValueOf(q.ParseCRL), 101 "ParseCertificate": reflect.ValueOf(q.ParseCertificate), 102 "ParseCertificateRequest": reflect.ValueOf(q.ParseCertificateRequest), 103 "ParseCertificates": reflect.ValueOf(q.ParseCertificates), 104 "ParseDERCRL": reflect.ValueOf(q.ParseDERCRL), 105 "ParseECPrivateKey": reflect.ValueOf(q.ParseECPrivateKey), 106 "ParsePKCS1PrivateKey": reflect.ValueOf(q.ParsePKCS1PrivateKey), 107 "ParsePKCS1PublicKey": reflect.ValueOf(q.ParsePKCS1PublicKey), 108 "ParsePKCS8PrivateKey": reflect.ValueOf(q.ParsePKCS8PrivateKey), 109 "ParsePKIXPublicKey": reflect.ValueOf(q.ParsePKIXPublicKey), 110 "ParseRevocationList": reflect.ValueOf(q.ParseRevocationList), 111 "SetFallbackRoots": reflect.ValueOf(q.SetFallbackRoots), 112 "SystemCertPool": reflect.ValueOf(q.SystemCertPool), 113 }, 114 TypedConsts: map[string]igop.TypedConst{ 115 "CANotAuthorizedForExtKeyUsage": {reflect.TypeOf(q.CANotAuthorizedForExtKeyUsage), constant.MakeInt64(int64(q.CANotAuthorizedForExtKeyUsage))}, 116 "CANotAuthorizedForThisName": {reflect.TypeOf(q.CANotAuthorizedForThisName), constant.MakeInt64(int64(q.CANotAuthorizedForThisName))}, 117 "DSA": {reflect.TypeOf(q.DSA), constant.MakeInt64(int64(q.DSA))}, 118 "DSAWithSHA1": {reflect.TypeOf(q.DSAWithSHA1), constant.MakeInt64(int64(q.DSAWithSHA1))}, 119 "DSAWithSHA256": {reflect.TypeOf(q.DSAWithSHA256), constant.MakeInt64(int64(q.DSAWithSHA256))}, 120 "ECDSA": {reflect.TypeOf(q.ECDSA), constant.MakeInt64(int64(q.ECDSA))}, 121 "ECDSAWithSHA1": {reflect.TypeOf(q.ECDSAWithSHA1), constant.MakeInt64(int64(q.ECDSAWithSHA1))}, 122 "ECDSAWithSHA256": {reflect.TypeOf(q.ECDSAWithSHA256), constant.MakeInt64(int64(q.ECDSAWithSHA256))}, 123 "ECDSAWithSHA384": {reflect.TypeOf(q.ECDSAWithSHA384), constant.MakeInt64(int64(q.ECDSAWithSHA384))}, 124 "ECDSAWithSHA512": {reflect.TypeOf(q.ECDSAWithSHA512), constant.MakeInt64(int64(q.ECDSAWithSHA512))}, 125 "Ed25519": {reflect.TypeOf(q.Ed25519), constant.MakeInt64(int64(q.Ed25519))}, 126 "Expired": {reflect.TypeOf(q.Expired), constant.MakeInt64(int64(q.Expired))}, 127 "ExtKeyUsageAny": {reflect.TypeOf(q.ExtKeyUsageAny), constant.MakeInt64(int64(q.ExtKeyUsageAny))}, 128 "ExtKeyUsageClientAuth": {reflect.TypeOf(q.ExtKeyUsageClientAuth), constant.MakeInt64(int64(q.ExtKeyUsageClientAuth))}, 129 "ExtKeyUsageCodeSigning": {reflect.TypeOf(q.ExtKeyUsageCodeSigning), constant.MakeInt64(int64(q.ExtKeyUsageCodeSigning))}, 130 "ExtKeyUsageEmailProtection": {reflect.TypeOf(q.ExtKeyUsageEmailProtection), constant.MakeInt64(int64(q.ExtKeyUsageEmailProtection))}, 131 "ExtKeyUsageIPSECEndSystem": {reflect.TypeOf(q.ExtKeyUsageIPSECEndSystem), constant.MakeInt64(int64(q.ExtKeyUsageIPSECEndSystem))}, 132 "ExtKeyUsageIPSECTunnel": {reflect.TypeOf(q.ExtKeyUsageIPSECTunnel), constant.MakeInt64(int64(q.ExtKeyUsageIPSECTunnel))}, 133 "ExtKeyUsageIPSECUser": {reflect.TypeOf(q.ExtKeyUsageIPSECUser), constant.MakeInt64(int64(q.ExtKeyUsageIPSECUser))}, 134 "ExtKeyUsageMicrosoftCommercialCodeSigning": {reflect.TypeOf(q.ExtKeyUsageMicrosoftCommercialCodeSigning), constant.MakeInt64(int64(q.ExtKeyUsageMicrosoftCommercialCodeSigning))}, 135 "ExtKeyUsageMicrosoftKernelCodeSigning": {reflect.TypeOf(q.ExtKeyUsageMicrosoftKernelCodeSigning), constant.MakeInt64(int64(q.ExtKeyUsageMicrosoftKernelCodeSigning))}, 136 "ExtKeyUsageMicrosoftServerGatedCrypto": {reflect.TypeOf(q.ExtKeyUsageMicrosoftServerGatedCrypto), constant.MakeInt64(int64(q.ExtKeyUsageMicrosoftServerGatedCrypto))}, 137 "ExtKeyUsageNetscapeServerGatedCrypto": {reflect.TypeOf(q.ExtKeyUsageNetscapeServerGatedCrypto), constant.MakeInt64(int64(q.ExtKeyUsageNetscapeServerGatedCrypto))}, 138 "ExtKeyUsageOCSPSigning": {reflect.TypeOf(q.ExtKeyUsageOCSPSigning), constant.MakeInt64(int64(q.ExtKeyUsageOCSPSigning))}, 139 "ExtKeyUsageServerAuth": {reflect.TypeOf(q.ExtKeyUsageServerAuth), constant.MakeInt64(int64(q.ExtKeyUsageServerAuth))}, 140 "ExtKeyUsageTimeStamping": {reflect.TypeOf(q.ExtKeyUsageTimeStamping), constant.MakeInt64(int64(q.ExtKeyUsageTimeStamping))}, 141 "IncompatibleUsage": {reflect.TypeOf(q.IncompatibleUsage), constant.MakeInt64(int64(q.IncompatibleUsage))}, 142 "KeyUsageCRLSign": {reflect.TypeOf(q.KeyUsageCRLSign), constant.MakeInt64(int64(q.KeyUsageCRLSign))}, 143 "KeyUsageCertSign": {reflect.TypeOf(q.KeyUsageCertSign), constant.MakeInt64(int64(q.KeyUsageCertSign))}, 144 "KeyUsageContentCommitment": {reflect.TypeOf(q.KeyUsageContentCommitment), constant.MakeInt64(int64(q.KeyUsageContentCommitment))}, 145 "KeyUsageDataEncipherment": {reflect.TypeOf(q.KeyUsageDataEncipherment), constant.MakeInt64(int64(q.KeyUsageDataEncipherment))}, 146 "KeyUsageDecipherOnly": {reflect.TypeOf(q.KeyUsageDecipherOnly), constant.MakeInt64(int64(q.KeyUsageDecipherOnly))}, 147 "KeyUsageDigitalSignature": {reflect.TypeOf(q.KeyUsageDigitalSignature), constant.MakeInt64(int64(q.KeyUsageDigitalSignature))}, 148 "KeyUsageEncipherOnly": {reflect.TypeOf(q.KeyUsageEncipherOnly), constant.MakeInt64(int64(q.KeyUsageEncipherOnly))}, 149 "KeyUsageKeyAgreement": {reflect.TypeOf(q.KeyUsageKeyAgreement), constant.MakeInt64(int64(q.KeyUsageKeyAgreement))}, 150 "KeyUsageKeyEncipherment": {reflect.TypeOf(q.KeyUsageKeyEncipherment), constant.MakeInt64(int64(q.KeyUsageKeyEncipherment))}, 151 "MD2WithRSA": {reflect.TypeOf(q.MD2WithRSA), constant.MakeInt64(int64(q.MD2WithRSA))}, 152 "MD5WithRSA": {reflect.TypeOf(q.MD5WithRSA), constant.MakeInt64(int64(q.MD5WithRSA))}, 153 "NameConstraintsWithoutSANs": {reflect.TypeOf(q.NameConstraintsWithoutSANs), constant.MakeInt64(int64(q.NameConstraintsWithoutSANs))}, 154 "NameMismatch": {reflect.TypeOf(q.NameMismatch), constant.MakeInt64(int64(q.NameMismatch))}, 155 "NotAuthorizedToSign": {reflect.TypeOf(q.NotAuthorizedToSign), constant.MakeInt64(int64(q.NotAuthorizedToSign))}, 156 "PEMCipher3DES": {reflect.TypeOf(q.PEMCipher3DES), constant.MakeInt64(int64(q.PEMCipher3DES))}, 157 "PEMCipherAES128": {reflect.TypeOf(q.PEMCipherAES128), constant.MakeInt64(int64(q.PEMCipherAES128))}, 158 "PEMCipherAES192": {reflect.TypeOf(q.PEMCipherAES192), constant.MakeInt64(int64(q.PEMCipherAES192))}, 159 "PEMCipherAES256": {reflect.TypeOf(q.PEMCipherAES256), constant.MakeInt64(int64(q.PEMCipherAES256))}, 160 "PEMCipherDES": {reflect.TypeOf(q.PEMCipherDES), constant.MakeInt64(int64(q.PEMCipherDES))}, 161 "PureEd25519": {reflect.TypeOf(q.PureEd25519), constant.MakeInt64(int64(q.PureEd25519))}, 162 "RSA": {reflect.TypeOf(q.RSA), constant.MakeInt64(int64(q.RSA))}, 163 "SHA1WithRSA": {reflect.TypeOf(q.SHA1WithRSA), constant.MakeInt64(int64(q.SHA1WithRSA))}, 164 "SHA256WithRSA": {reflect.TypeOf(q.SHA256WithRSA), constant.MakeInt64(int64(q.SHA256WithRSA))}, 165 "SHA256WithRSAPSS": {reflect.TypeOf(q.SHA256WithRSAPSS), constant.MakeInt64(int64(q.SHA256WithRSAPSS))}, 166 "SHA384WithRSA": {reflect.TypeOf(q.SHA384WithRSA), constant.MakeInt64(int64(q.SHA384WithRSA))}, 167 "SHA384WithRSAPSS": {reflect.TypeOf(q.SHA384WithRSAPSS), constant.MakeInt64(int64(q.SHA384WithRSAPSS))}, 168 "SHA512WithRSA": {reflect.TypeOf(q.SHA512WithRSA), constant.MakeInt64(int64(q.SHA512WithRSA))}, 169 "SHA512WithRSAPSS": {reflect.TypeOf(q.SHA512WithRSAPSS), constant.MakeInt64(int64(q.SHA512WithRSAPSS))}, 170 "TooManyConstraints": {reflect.TypeOf(q.TooManyConstraints), constant.MakeInt64(int64(q.TooManyConstraints))}, 171 "TooManyIntermediates": {reflect.TypeOf(q.TooManyIntermediates), constant.MakeInt64(int64(q.TooManyIntermediates))}, 172 "UnconstrainedName": {reflect.TypeOf(q.UnconstrainedName), constant.MakeInt64(int64(q.UnconstrainedName))}, 173 "UnknownPublicKeyAlgorithm": {reflect.TypeOf(q.UnknownPublicKeyAlgorithm), constant.MakeInt64(int64(q.UnknownPublicKeyAlgorithm))}, 174 "UnknownSignatureAlgorithm": {reflect.TypeOf(q.UnknownSignatureAlgorithm), constant.MakeInt64(int64(q.UnknownSignatureAlgorithm))}, 175 }, 176 UntypedConsts: map[string]igop.UntypedConst{}, 177 }) 178 }