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

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.21
     4  // +build 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  			"RevocationListEntry":        reflect.TypeOf((*q.RevocationListEntry)(nil)).Elem(),
    77  			"SignatureAlgorithm":         reflect.TypeOf((*q.SignatureAlgorithm)(nil)).Elem(),
    78  			"SystemRootsError":           reflect.TypeOf((*q.SystemRootsError)(nil)).Elem(),
    79  			"UnhandledCriticalExtension": reflect.TypeOf((*q.UnhandledCriticalExtension)(nil)).Elem(),
    80  			"UnknownAuthorityError":      reflect.TypeOf((*q.UnknownAuthorityError)(nil)).Elem(),
    81  			"VerifyOptions":              reflect.TypeOf((*q.VerifyOptions)(nil)).Elem(),
    82  		},
    83  		AliasTypes: map[string]reflect.Type{},
    84  		Vars: map[string]reflect.Value{
    85  			"ErrUnsupportedAlgorithm": reflect.ValueOf(&q.ErrUnsupportedAlgorithm),
    86  			"IncorrectPasswordError":  reflect.ValueOf(&q.IncorrectPasswordError),
    87  		},
    88  		Funcs: map[string]reflect.Value{
    89  			"CreateCertificate":        reflect.ValueOf(q.CreateCertificate),
    90  			"CreateCertificateRequest": reflect.ValueOf(q.CreateCertificateRequest),
    91  			"CreateRevocationList":     reflect.ValueOf(q.CreateRevocationList),
    92  			"DecryptPEMBlock":          reflect.ValueOf(q.DecryptPEMBlock),
    93  			"EncryptPEMBlock":          reflect.ValueOf(q.EncryptPEMBlock),
    94  			"IsEncryptedPEMBlock":      reflect.ValueOf(q.IsEncryptedPEMBlock),
    95  			"MarshalECPrivateKey":      reflect.ValueOf(q.MarshalECPrivateKey),
    96  			"MarshalPKCS1PrivateKey":   reflect.ValueOf(q.MarshalPKCS1PrivateKey),
    97  			"MarshalPKCS1PublicKey":    reflect.ValueOf(q.MarshalPKCS1PublicKey),
    98  			"MarshalPKCS8PrivateKey":   reflect.ValueOf(q.MarshalPKCS8PrivateKey),
    99  			"MarshalPKIXPublicKey":     reflect.ValueOf(q.MarshalPKIXPublicKey),
   100  			"NewCertPool":              reflect.ValueOf(q.NewCertPool),
   101  			"ParseCRL":                 reflect.ValueOf(q.ParseCRL),
   102  			"ParseCertificate":         reflect.ValueOf(q.ParseCertificate),
   103  			"ParseCertificateRequest":  reflect.ValueOf(q.ParseCertificateRequest),
   104  			"ParseCertificates":        reflect.ValueOf(q.ParseCertificates),
   105  			"ParseDERCRL":              reflect.ValueOf(q.ParseDERCRL),
   106  			"ParseECPrivateKey":        reflect.ValueOf(q.ParseECPrivateKey),
   107  			"ParsePKCS1PrivateKey":     reflect.ValueOf(q.ParsePKCS1PrivateKey),
   108  			"ParsePKCS1PublicKey":      reflect.ValueOf(q.ParsePKCS1PublicKey),
   109  			"ParsePKCS8PrivateKey":     reflect.ValueOf(q.ParsePKCS8PrivateKey),
   110  			"ParsePKIXPublicKey":       reflect.ValueOf(q.ParsePKIXPublicKey),
   111  			"ParseRevocationList":      reflect.ValueOf(q.ParseRevocationList),
   112  			"SetFallbackRoots":         reflect.ValueOf(q.SetFallbackRoots),
   113  			"SystemCertPool":           reflect.ValueOf(q.SystemCertPool),
   114  		},
   115  		TypedConsts: map[string]igop.TypedConst{
   116  			"CANotAuthorizedForExtKeyUsage": {reflect.TypeOf(q.CANotAuthorizedForExtKeyUsage), constant.MakeInt64(int64(q.CANotAuthorizedForExtKeyUsage))},
   117  			"CANotAuthorizedForThisName":    {reflect.TypeOf(q.CANotAuthorizedForThisName), constant.MakeInt64(int64(q.CANotAuthorizedForThisName))},
   118  			"DSA":                           {reflect.TypeOf(q.DSA), constant.MakeInt64(int64(q.DSA))},
   119  			"DSAWithSHA1":                   {reflect.TypeOf(q.DSAWithSHA1), constant.MakeInt64(int64(q.DSAWithSHA1))},
   120  			"DSAWithSHA256":                 {reflect.TypeOf(q.DSAWithSHA256), constant.MakeInt64(int64(q.DSAWithSHA256))},
   121  			"ECDSA":                         {reflect.TypeOf(q.ECDSA), constant.MakeInt64(int64(q.ECDSA))},
   122  			"ECDSAWithSHA1":                 {reflect.TypeOf(q.ECDSAWithSHA1), constant.MakeInt64(int64(q.ECDSAWithSHA1))},
   123  			"ECDSAWithSHA256":               {reflect.TypeOf(q.ECDSAWithSHA256), constant.MakeInt64(int64(q.ECDSAWithSHA256))},
   124  			"ECDSAWithSHA384":               {reflect.TypeOf(q.ECDSAWithSHA384), constant.MakeInt64(int64(q.ECDSAWithSHA384))},
   125  			"ECDSAWithSHA512":               {reflect.TypeOf(q.ECDSAWithSHA512), constant.MakeInt64(int64(q.ECDSAWithSHA512))},
   126  			"Ed25519":                       {reflect.TypeOf(q.Ed25519), constant.MakeInt64(int64(q.Ed25519))},
   127  			"Expired":                       {reflect.TypeOf(q.Expired), constant.MakeInt64(int64(q.Expired))},
   128  			"ExtKeyUsageAny":                {reflect.TypeOf(q.ExtKeyUsageAny), constant.MakeInt64(int64(q.ExtKeyUsageAny))},
   129  			"ExtKeyUsageClientAuth":         {reflect.TypeOf(q.ExtKeyUsageClientAuth), constant.MakeInt64(int64(q.ExtKeyUsageClientAuth))},
   130  			"ExtKeyUsageCodeSigning":        {reflect.TypeOf(q.ExtKeyUsageCodeSigning), constant.MakeInt64(int64(q.ExtKeyUsageCodeSigning))},
   131  			"ExtKeyUsageEmailProtection":    {reflect.TypeOf(q.ExtKeyUsageEmailProtection), constant.MakeInt64(int64(q.ExtKeyUsageEmailProtection))},
   132  			"ExtKeyUsageIPSECEndSystem":     {reflect.TypeOf(q.ExtKeyUsageIPSECEndSystem), constant.MakeInt64(int64(q.ExtKeyUsageIPSECEndSystem))},
   133  			"ExtKeyUsageIPSECTunnel":        {reflect.TypeOf(q.ExtKeyUsageIPSECTunnel), constant.MakeInt64(int64(q.ExtKeyUsageIPSECTunnel))},
   134  			"ExtKeyUsageIPSECUser":          {reflect.TypeOf(q.ExtKeyUsageIPSECUser), constant.MakeInt64(int64(q.ExtKeyUsageIPSECUser))},
   135  			"ExtKeyUsageMicrosoftCommercialCodeSigning": {reflect.TypeOf(q.ExtKeyUsageMicrosoftCommercialCodeSigning), constant.MakeInt64(int64(q.ExtKeyUsageMicrosoftCommercialCodeSigning))},
   136  			"ExtKeyUsageMicrosoftKernelCodeSigning":     {reflect.TypeOf(q.ExtKeyUsageMicrosoftKernelCodeSigning), constant.MakeInt64(int64(q.ExtKeyUsageMicrosoftKernelCodeSigning))},
   137  			"ExtKeyUsageMicrosoftServerGatedCrypto":     {reflect.TypeOf(q.ExtKeyUsageMicrosoftServerGatedCrypto), constant.MakeInt64(int64(q.ExtKeyUsageMicrosoftServerGatedCrypto))},
   138  			"ExtKeyUsageNetscapeServerGatedCrypto":      {reflect.TypeOf(q.ExtKeyUsageNetscapeServerGatedCrypto), constant.MakeInt64(int64(q.ExtKeyUsageNetscapeServerGatedCrypto))},
   139  			"ExtKeyUsageOCSPSigning":                    {reflect.TypeOf(q.ExtKeyUsageOCSPSigning), constant.MakeInt64(int64(q.ExtKeyUsageOCSPSigning))},
   140  			"ExtKeyUsageServerAuth":                     {reflect.TypeOf(q.ExtKeyUsageServerAuth), constant.MakeInt64(int64(q.ExtKeyUsageServerAuth))},
   141  			"ExtKeyUsageTimeStamping":                   {reflect.TypeOf(q.ExtKeyUsageTimeStamping), constant.MakeInt64(int64(q.ExtKeyUsageTimeStamping))},
   142  			"IncompatibleUsage":                         {reflect.TypeOf(q.IncompatibleUsage), constant.MakeInt64(int64(q.IncompatibleUsage))},
   143  			"KeyUsageCRLSign":                           {reflect.TypeOf(q.KeyUsageCRLSign), constant.MakeInt64(int64(q.KeyUsageCRLSign))},
   144  			"KeyUsageCertSign":                          {reflect.TypeOf(q.KeyUsageCertSign), constant.MakeInt64(int64(q.KeyUsageCertSign))},
   145  			"KeyUsageContentCommitment":                 {reflect.TypeOf(q.KeyUsageContentCommitment), constant.MakeInt64(int64(q.KeyUsageContentCommitment))},
   146  			"KeyUsageDataEncipherment":                  {reflect.TypeOf(q.KeyUsageDataEncipherment), constant.MakeInt64(int64(q.KeyUsageDataEncipherment))},
   147  			"KeyUsageDecipherOnly":                      {reflect.TypeOf(q.KeyUsageDecipherOnly), constant.MakeInt64(int64(q.KeyUsageDecipherOnly))},
   148  			"KeyUsageDigitalSignature":                  {reflect.TypeOf(q.KeyUsageDigitalSignature), constant.MakeInt64(int64(q.KeyUsageDigitalSignature))},
   149  			"KeyUsageEncipherOnly":                      {reflect.TypeOf(q.KeyUsageEncipherOnly), constant.MakeInt64(int64(q.KeyUsageEncipherOnly))},
   150  			"KeyUsageKeyAgreement":                      {reflect.TypeOf(q.KeyUsageKeyAgreement), constant.MakeInt64(int64(q.KeyUsageKeyAgreement))},
   151  			"KeyUsageKeyEncipherment":                   {reflect.TypeOf(q.KeyUsageKeyEncipherment), constant.MakeInt64(int64(q.KeyUsageKeyEncipherment))},
   152  			"MD2WithRSA":                                {reflect.TypeOf(q.MD2WithRSA), constant.MakeInt64(int64(q.MD2WithRSA))},
   153  			"MD5WithRSA":                                {reflect.TypeOf(q.MD5WithRSA), constant.MakeInt64(int64(q.MD5WithRSA))},
   154  			"NameConstraintsWithoutSANs":                {reflect.TypeOf(q.NameConstraintsWithoutSANs), constant.MakeInt64(int64(q.NameConstraintsWithoutSANs))},
   155  			"NameMismatch":                              {reflect.TypeOf(q.NameMismatch), constant.MakeInt64(int64(q.NameMismatch))},
   156  			"NotAuthorizedToSign":                       {reflect.TypeOf(q.NotAuthorizedToSign), constant.MakeInt64(int64(q.NotAuthorizedToSign))},
   157  			"PEMCipher3DES":                             {reflect.TypeOf(q.PEMCipher3DES), constant.MakeInt64(int64(q.PEMCipher3DES))},
   158  			"PEMCipherAES128":                           {reflect.TypeOf(q.PEMCipherAES128), constant.MakeInt64(int64(q.PEMCipherAES128))},
   159  			"PEMCipherAES192":                           {reflect.TypeOf(q.PEMCipherAES192), constant.MakeInt64(int64(q.PEMCipherAES192))},
   160  			"PEMCipherAES256":                           {reflect.TypeOf(q.PEMCipherAES256), constant.MakeInt64(int64(q.PEMCipherAES256))},
   161  			"PEMCipherDES":                              {reflect.TypeOf(q.PEMCipherDES), constant.MakeInt64(int64(q.PEMCipherDES))},
   162  			"PureEd25519":                               {reflect.TypeOf(q.PureEd25519), constant.MakeInt64(int64(q.PureEd25519))},
   163  			"RSA":                                       {reflect.TypeOf(q.RSA), constant.MakeInt64(int64(q.RSA))},
   164  			"SHA1WithRSA":                               {reflect.TypeOf(q.SHA1WithRSA), constant.MakeInt64(int64(q.SHA1WithRSA))},
   165  			"SHA256WithRSA":                             {reflect.TypeOf(q.SHA256WithRSA), constant.MakeInt64(int64(q.SHA256WithRSA))},
   166  			"SHA256WithRSAPSS":                          {reflect.TypeOf(q.SHA256WithRSAPSS), constant.MakeInt64(int64(q.SHA256WithRSAPSS))},
   167  			"SHA384WithRSA":                             {reflect.TypeOf(q.SHA384WithRSA), constant.MakeInt64(int64(q.SHA384WithRSA))},
   168  			"SHA384WithRSAPSS":                          {reflect.TypeOf(q.SHA384WithRSAPSS), constant.MakeInt64(int64(q.SHA384WithRSAPSS))},
   169  			"SHA512WithRSA":                             {reflect.TypeOf(q.SHA512WithRSA), constant.MakeInt64(int64(q.SHA512WithRSA))},
   170  			"SHA512WithRSAPSS":                          {reflect.TypeOf(q.SHA512WithRSAPSS), constant.MakeInt64(int64(q.SHA512WithRSAPSS))},
   171  			"TooManyConstraints":                        {reflect.TypeOf(q.TooManyConstraints), constant.MakeInt64(int64(q.TooManyConstraints))},
   172  			"TooManyIntermediates":                      {reflect.TypeOf(q.TooManyIntermediates), constant.MakeInt64(int64(q.TooManyIntermediates))},
   173  			"UnconstrainedName":                         {reflect.TypeOf(q.UnconstrainedName), constant.MakeInt64(int64(q.UnconstrainedName))},
   174  			"UnknownPublicKeyAlgorithm":                 {reflect.TypeOf(q.UnknownPublicKeyAlgorithm), constant.MakeInt64(int64(q.UnknownPublicKeyAlgorithm))},
   175  			"UnknownSignatureAlgorithm":                 {reflect.TypeOf(q.UnknownSignatureAlgorithm), constant.MakeInt64(int64(q.UnknownSignatureAlgorithm))},
   176  		},
   177  		UntypedConsts: map[string]igop.UntypedConst{},
   178  	})
   179  }