github.com/goplus/igop@v0.25.0/pkg/crypto/elliptic/go118_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.18 && !go1.19
     4  // +build go1.18,!go1.19
     5  
     6  package elliptic
     7  
     8  import (
     9  	q "crypto/elliptic"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "elliptic",
    19  		Path: "crypto/elliptic",
    20  		Deps: map[string]string{
    21  			"crypto/elliptic/internal/nistec": "nistec",
    22  			"crypto/rand":                     "rand",
    23  			"embed":                           "embed",
    24  			"io":                              "io",
    25  			"math/big":                        "big",
    26  			"sync":                            "sync",
    27  		},
    28  		Interfaces: map[string]reflect.Type{
    29  			"Curve": reflect.TypeOf((*q.Curve)(nil)).Elem(),
    30  		},
    31  		NamedTypes: map[string]reflect.Type{
    32  			"CurveParams": reflect.TypeOf((*q.CurveParams)(nil)).Elem(),
    33  		},
    34  		AliasTypes: map[string]reflect.Type{},
    35  		Vars:       map[string]reflect.Value{},
    36  		Funcs: map[string]reflect.Value{
    37  			"GenerateKey":         reflect.ValueOf(q.GenerateKey),
    38  			"Marshal":             reflect.ValueOf(q.Marshal),
    39  			"MarshalCompressed":   reflect.ValueOf(q.MarshalCompressed),
    40  			"P224":                reflect.ValueOf(q.P224),
    41  			"P256":                reflect.ValueOf(q.P256),
    42  			"P384":                reflect.ValueOf(q.P384),
    43  			"P521":                reflect.ValueOf(q.P521),
    44  			"Unmarshal":           reflect.ValueOf(q.Unmarshal),
    45  			"UnmarshalCompressed": reflect.ValueOf(q.UnmarshalCompressed),
    46  		},
    47  		TypedConsts:   map[string]igop.TypedConst{},
    48  		UntypedConsts: map[string]igop.UntypedConst{},
    49  	})
    50  }