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

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.19 && !go1.20
     4  // +build go1.19,!go1.20
     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/internal/nistec": "nistec",
    22  			"errors":                 "errors",
    23  			"io":                     "io",
    24  			"math/big":               "big",
    25  			"sync":                   "sync",
    26  		},
    27  		Interfaces: map[string]reflect.Type{
    28  			"Curve": reflect.TypeOf((*q.Curve)(nil)).Elem(),
    29  		},
    30  		NamedTypes: map[string]reflect.Type{
    31  			"CurveParams": reflect.TypeOf((*q.CurveParams)(nil)).Elem(),
    32  		},
    33  		AliasTypes: map[string]reflect.Type{},
    34  		Vars:       map[string]reflect.Value{},
    35  		Funcs: map[string]reflect.Value{
    36  			"GenerateKey":         reflect.ValueOf(q.GenerateKey),
    37  			"Marshal":             reflect.ValueOf(q.Marshal),
    38  			"MarshalCompressed":   reflect.ValueOf(q.MarshalCompressed),
    39  			"P224":                reflect.ValueOf(q.P224),
    40  			"P256":                reflect.ValueOf(q.P256),
    41  			"P384":                reflect.ValueOf(q.P384),
    42  			"P521":                reflect.ValueOf(q.P521),
    43  			"Unmarshal":           reflect.ValueOf(q.Unmarshal),
    44  			"UnmarshalCompressed": reflect.ValueOf(q.UnmarshalCompressed),
    45  		},
    46  		TypedConsts:   map[string]igop.TypedConst{},
    47  		UntypedConsts: map[string]igop.UntypedConst{},
    48  	})
    49  }