github.com/goplus/igop@v0.25.0/pkg/crypto/x509/go116_export.go (about)

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