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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     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"},
    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  			"P224":        reflect.ValueOf(q.P224),
    36  			"P256":        reflect.ValueOf(q.P256),
    37  			"P384":        reflect.ValueOf(q.P384),
    38  			"P521":        reflect.ValueOf(q.P521),
    39  			"Unmarshal":   reflect.ValueOf(q.Unmarshal),
    40  		},
    41  		TypedConsts:   map[string]gossa.TypedConst{},
    42  		UntypedConsts: map[string]gossa.UntypedConst{},
    43  	})
    44  }