github.com/goplus/igop@v0.25.0/pkg/crypto/tls/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 tls 7 8 import ( 9 q "crypto/tls" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "tls", 20 Path: "crypto/tls", 21 Deps: map[string]string{ 22 "bytes": "bytes", 23 "container/list": "list", 24 "context": "context", 25 "crypto": "crypto", 26 "crypto/aes": "aes", 27 "crypto/cipher": "cipher", 28 "crypto/des": "des", 29 "crypto/ecdh": "ecdh", 30 "crypto/ecdsa": "ecdsa", 31 "crypto/ed25519": "ed25519", 32 "crypto/elliptic": "elliptic", 33 "crypto/hmac": "hmac", 34 "crypto/internal/boring": "boring", 35 "crypto/md5": "md5", 36 "crypto/rand": "rand", 37 "crypto/rc4": "rc4", 38 "crypto/rsa": "rsa", 39 "crypto/sha1": "sha1", 40 "crypto/sha256": "sha256", 41 "crypto/sha512": "sha512", 42 "crypto/subtle": "subtle", 43 "crypto/x509": "x509", 44 "encoding/binary": "binary", 45 "encoding/pem": "pem", 46 "errors": "errors", 47 "fmt": "fmt", 48 "hash": "hash", 49 "internal/cpu": "cpu", 50 "internal/godebug": "godebug", 51 "io": "io", 52 "net": "net", 53 "os": "os", 54 "runtime": "runtime", 55 "strconv": "strconv", 56 "strings": "strings", 57 "sync": "sync", 58 "sync/atomic": "atomic", 59 "time": "time", 60 "vendor/golang.org/x/crypto/chacha20poly1305": "chacha20poly1305", 61 "vendor/golang.org/x/crypto/cryptobyte": "cryptobyte", 62 "vendor/golang.org/x/crypto/hkdf": "hkdf", 63 }, 64 Interfaces: map[string]reflect.Type{ 65 "ClientSessionCache": reflect.TypeOf((*q.ClientSessionCache)(nil)).Elem(), 66 }, 67 NamedTypes: map[string]reflect.Type{ 68 "AlertError": reflect.TypeOf((*q.AlertError)(nil)).Elem(), 69 "Certificate": reflect.TypeOf((*q.Certificate)(nil)).Elem(), 70 "CertificateRequestInfo": reflect.TypeOf((*q.CertificateRequestInfo)(nil)).Elem(), 71 "CertificateVerificationError": reflect.TypeOf((*q.CertificateVerificationError)(nil)).Elem(), 72 "CipherSuite": reflect.TypeOf((*q.CipherSuite)(nil)).Elem(), 73 "ClientAuthType": reflect.TypeOf((*q.ClientAuthType)(nil)).Elem(), 74 "ClientHelloInfo": reflect.TypeOf((*q.ClientHelloInfo)(nil)).Elem(), 75 "ClientSessionState": reflect.TypeOf((*q.ClientSessionState)(nil)).Elem(), 76 "Config": reflect.TypeOf((*q.Config)(nil)).Elem(), 77 "Conn": reflect.TypeOf((*q.Conn)(nil)).Elem(), 78 "ConnectionState": reflect.TypeOf((*q.ConnectionState)(nil)).Elem(), 79 "CurveID": reflect.TypeOf((*q.CurveID)(nil)).Elem(), 80 "Dialer": reflect.TypeOf((*q.Dialer)(nil)).Elem(), 81 "QUICConfig": reflect.TypeOf((*q.QUICConfig)(nil)).Elem(), 82 "QUICConn": reflect.TypeOf((*q.QUICConn)(nil)).Elem(), 83 "QUICEncryptionLevel": reflect.TypeOf((*q.QUICEncryptionLevel)(nil)).Elem(), 84 "QUICEvent": reflect.TypeOf((*q.QUICEvent)(nil)).Elem(), 85 "QUICEventKind": reflect.TypeOf((*q.QUICEventKind)(nil)).Elem(), 86 "QUICSessionTicketOptions": reflect.TypeOf((*q.QUICSessionTicketOptions)(nil)).Elem(), 87 "RecordHeaderError": reflect.TypeOf((*q.RecordHeaderError)(nil)).Elem(), 88 "RenegotiationSupport": reflect.TypeOf((*q.RenegotiationSupport)(nil)).Elem(), 89 "SessionState": reflect.TypeOf((*q.SessionState)(nil)).Elem(), 90 "SignatureScheme": reflect.TypeOf((*q.SignatureScheme)(nil)).Elem(), 91 }, 92 AliasTypes: map[string]reflect.Type{}, 93 Vars: map[string]reflect.Value{}, 94 Funcs: map[string]reflect.Value{ 95 "CipherSuiteName": reflect.ValueOf(q.CipherSuiteName), 96 "CipherSuites": reflect.ValueOf(q.CipherSuites), 97 "Client": reflect.ValueOf(q.Client), 98 "Dial": reflect.ValueOf(q.Dial), 99 "DialWithDialer": reflect.ValueOf(q.DialWithDialer), 100 "InsecureCipherSuites": reflect.ValueOf(q.InsecureCipherSuites), 101 "Listen": reflect.ValueOf(q.Listen), 102 "LoadX509KeyPair": reflect.ValueOf(q.LoadX509KeyPair), 103 "NewLRUClientSessionCache": reflect.ValueOf(q.NewLRUClientSessionCache), 104 "NewListener": reflect.ValueOf(q.NewListener), 105 "NewResumptionState": reflect.ValueOf(q.NewResumptionState), 106 "ParseSessionState": reflect.ValueOf(q.ParseSessionState), 107 "QUICClient": reflect.ValueOf(q.QUICClient), 108 "QUICServer": reflect.ValueOf(q.QUICServer), 109 "Server": reflect.ValueOf(q.Server), 110 "VersionName": reflect.ValueOf(q.VersionName), 111 "X509KeyPair": reflect.ValueOf(q.X509KeyPair), 112 }, 113 TypedConsts: map[string]igop.TypedConst{ 114 "CurveP256": {reflect.TypeOf(q.CurveP256), constant.MakeInt64(int64(q.CurveP256))}, 115 "CurveP384": {reflect.TypeOf(q.CurveP384), constant.MakeInt64(int64(q.CurveP384))}, 116 "CurveP521": {reflect.TypeOf(q.CurveP521), constant.MakeInt64(int64(q.CurveP521))}, 117 "ECDSAWithP256AndSHA256": {reflect.TypeOf(q.ECDSAWithP256AndSHA256), constant.MakeInt64(int64(q.ECDSAWithP256AndSHA256))}, 118 "ECDSAWithP384AndSHA384": {reflect.TypeOf(q.ECDSAWithP384AndSHA384), constant.MakeInt64(int64(q.ECDSAWithP384AndSHA384))}, 119 "ECDSAWithP521AndSHA512": {reflect.TypeOf(q.ECDSAWithP521AndSHA512), constant.MakeInt64(int64(q.ECDSAWithP521AndSHA512))}, 120 "ECDSAWithSHA1": {reflect.TypeOf(q.ECDSAWithSHA1), constant.MakeInt64(int64(q.ECDSAWithSHA1))}, 121 "Ed25519": {reflect.TypeOf(q.Ed25519), constant.MakeInt64(int64(q.Ed25519))}, 122 "NoClientCert": {reflect.TypeOf(q.NoClientCert), constant.MakeInt64(int64(q.NoClientCert))}, 123 "PKCS1WithSHA1": {reflect.TypeOf(q.PKCS1WithSHA1), constant.MakeInt64(int64(q.PKCS1WithSHA1))}, 124 "PKCS1WithSHA256": {reflect.TypeOf(q.PKCS1WithSHA256), constant.MakeInt64(int64(q.PKCS1WithSHA256))}, 125 "PKCS1WithSHA384": {reflect.TypeOf(q.PKCS1WithSHA384), constant.MakeInt64(int64(q.PKCS1WithSHA384))}, 126 "PKCS1WithSHA512": {reflect.TypeOf(q.PKCS1WithSHA512), constant.MakeInt64(int64(q.PKCS1WithSHA512))}, 127 "PSSWithSHA256": {reflect.TypeOf(q.PSSWithSHA256), constant.MakeInt64(int64(q.PSSWithSHA256))}, 128 "PSSWithSHA384": {reflect.TypeOf(q.PSSWithSHA384), constant.MakeInt64(int64(q.PSSWithSHA384))}, 129 "PSSWithSHA512": {reflect.TypeOf(q.PSSWithSHA512), constant.MakeInt64(int64(q.PSSWithSHA512))}, 130 "QUICEncryptionLevelApplication": {reflect.TypeOf(q.QUICEncryptionLevelApplication), constant.MakeInt64(int64(q.QUICEncryptionLevelApplication))}, 131 "QUICEncryptionLevelEarly": {reflect.TypeOf(q.QUICEncryptionLevelEarly), constant.MakeInt64(int64(q.QUICEncryptionLevelEarly))}, 132 "QUICEncryptionLevelHandshake": {reflect.TypeOf(q.QUICEncryptionLevelHandshake), constant.MakeInt64(int64(q.QUICEncryptionLevelHandshake))}, 133 "QUICEncryptionLevelInitial": {reflect.TypeOf(q.QUICEncryptionLevelInitial), constant.MakeInt64(int64(q.QUICEncryptionLevelInitial))}, 134 "QUICHandshakeDone": {reflect.TypeOf(q.QUICHandshakeDone), constant.MakeInt64(int64(q.QUICHandshakeDone))}, 135 "QUICNoEvent": {reflect.TypeOf(q.QUICNoEvent), constant.MakeInt64(int64(q.QUICNoEvent))}, 136 "QUICRejectedEarlyData": {reflect.TypeOf(q.QUICRejectedEarlyData), constant.MakeInt64(int64(q.QUICRejectedEarlyData))}, 137 "QUICSetReadSecret": {reflect.TypeOf(q.QUICSetReadSecret), constant.MakeInt64(int64(q.QUICSetReadSecret))}, 138 "QUICSetWriteSecret": {reflect.TypeOf(q.QUICSetWriteSecret), constant.MakeInt64(int64(q.QUICSetWriteSecret))}, 139 "QUICTransportParameters": {reflect.TypeOf(q.QUICTransportParameters), constant.MakeInt64(int64(q.QUICTransportParameters))}, 140 "QUICTransportParametersRequired": {reflect.TypeOf(q.QUICTransportParametersRequired), constant.MakeInt64(int64(q.QUICTransportParametersRequired))}, 141 "QUICWriteData": {reflect.TypeOf(q.QUICWriteData), constant.MakeInt64(int64(q.QUICWriteData))}, 142 "RenegotiateFreelyAsClient": {reflect.TypeOf(q.RenegotiateFreelyAsClient), constant.MakeInt64(int64(q.RenegotiateFreelyAsClient))}, 143 "RenegotiateNever": {reflect.TypeOf(q.RenegotiateNever), constant.MakeInt64(int64(q.RenegotiateNever))}, 144 "RenegotiateOnceAsClient": {reflect.TypeOf(q.RenegotiateOnceAsClient), constant.MakeInt64(int64(q.RenegotiateOnceAsClient))}, 145 "RequestClientCert": {reflect.TypeOf(q.RequestClientCert), constant.MakeInt64(int64(q.RequestClientCert))}, 146 "RequireAndVerifyClientCert": {reflect.TypeOf(q.RequireAndVerifyClientCert), constant.MakeInt64(int64(q.RequireAndVerifyClientCert))}, 147 "RequireAnyClientCert": {reflect.TypeOf(q.RequireAnyClientCert), constant.MakeInt64(int64(q.RequireAnyClientCert))}, 148 "TLS_AES_128_GCM_SHA256": {reflect.TypeOf(q.TLS_AES_128_GCM_SHA256), constant.MakeInt64(int64(q.TLS_AES_128_GCM_SHA256))}, 149 "TLS_AES_256_GCM_SHA384": {reflect.TypeOf(q.TLS_AES_256_GCM_SHA384), constant.MakeInt64(int64(q.TLS_AES_256_GCM_SHA384))}, 150 "TLS_CHACHA20_POLY1305_SHA256": {reflect.TypeOf(q.TLS_CHACHA20_POLY1305_SHA256), constant.MakeInt64(int64(q.TLS_CHACHA20_POLY1305_SHA256))}, 151 "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA))}, 152 "TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256))}, 153 "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256))}, 154 "TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA))}, 155 "TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384))}, 156 "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305))}, 157 "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256))}, 158 "TLS_ECDHE_ECDSA_WITH_RC4_128_SHA": {reflect.TypeOf(q.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA), constant.MakeInt64(int64(q.TLS_ECDHE_ECDSA_WITH_RC4_128_SHA))}, 159 "TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA))}, 160 "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA))}, 161 "TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256))}, 162 "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256))}, 163 "TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA))}, 164 "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384))}, 165 "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305))}, 166 "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256))}, 167 "TLS_ECDHE_RSA_WITH_RC4_128_SHA": {reflect.TypeOf(q.TLS_ECDHE_RSA_WITH_RC4_128_SHA), constant.MakeInt64(int64(q.TLS_ECDHE_RSA_WITH_RC4_128_SHA))}, 168 "TLS_FALLBACK_SCSV": {reflect.TypeOf(q.TLS_FALLBACK_SCSV), constant.MakeInt64(int64(q.TLS_FALLBACK_SCSV))}, 169 "TLS_RSA_WITH_3DES_EDE_CBC_SHA": {reflect.TypeOf(q.TLS_RSA_WITH_3DES_EDE_CBC_SHA), constant.MakeInt64(int64(q.TLS_RSA_WITH_3DES_EDE_CBC_SHA))}, 170 "TLS_RSA_WITH_AES_128_CBC_SHA": {reflect.TypeOf(q.TLS_RSA_WITH_AES_128_CBC_SHA), constant.MakeInt64(int64(q.TLS_RSA_WITH_AES_128_CBC_SHA))}, 171 "TLS_RSA_WITH_AES_128_CBC_SHA256": {reflect.TypeOf(q.TLS_RSA_WITH_AES_128_CBC_SHA256), constant.MakeInt64(int64(q.TLS_RSA_WITH_AES_128_CBC_SHA256))}, 172 "TLS_RSA_WITH_AES_128_GCM_SHA256": {reflect.TypeOf(q.TLS_RSA_WITH_AES_128_GCM_SHA256), constant.MakeInt64(int64(q.TLS_RSA_WITH_AES_128_GCM_SHA256))}, 173 "TLS_RSA_WITH_AES_256_CBC_SHA": {reflect.TypeOf(q.TLS_RSA_WITH_AES_256_CBC_SHA), constant.MakeInt64(int64(q.TLS_RSA_WITH_AES_256_CBC_SHA))}, 174 "TLS_RSA_WITH_AES_256_GCM_SHA384": {reflect.TypeOf(q.TLS_RSA_WITH_AES_256_GCM_SHA384), constant.MakeInt64(int64(q.TLS_RSA_WITH_AES_256_GCM_SHA384))}, 175 "TLS_RSA_WITH_RC4_128_SHA": {reflect.TypeOf(q.TLS_RSA_WITH_RC4_128_SHA), constant.MakeInt64(int64(q.TLS_RSA_WITH_RC4_128_SHA))}, 176 "VerifyClientCertIfGiven": {reflect.TypeOf(q.VerifyClientCertIfGiven), constant.MakeInt64(int64(q.VerifyClientCertIfGiven))}, 177 "X25519": {reflect.TypeOf(q.X25519), constant.MakeInt64(int64(q.X25519))}, 178 }, 179 UntypedConsts: map[string]igop.UntypedConst{ 180 "VersionSSL30": {"untyped int", constant.MakeInt64(int64(q.VersionSSL30))}, 181 "VersionTLS10": {"untyped int", constant.MakeInt64(int64(q.VersionTLS10))}, 182 "VersionTLS11": {"untyped int", constant.MakeInt64(int64(q.VersionTLS11))}, 183 "VersionTLS12": {"untyped int", constant.MakeInt64(int64(q.VersionTLS12))}, 184 "VersionTLS13": {"untyped int", constant.MakeInt64(int64(q.VersionTLS13))}, 185 }, 186 }) 187 }