github.com/goplus/gossa@v0.3.25/pkg/crypto/elliptic/go115_export.go (about)

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