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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     4  
     5  package ecdsa
     6  
     7  import (
     8  	q "crypto/ecdsa"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "ecdsa",
    18  		Path: "crypto/ecdsa",
    19  		Deps: map[string]string{
    20  			"crypto":                   "crypto",
    21  			"crypto/aes":               "aes",
    22  			"crypto/cipher":            "cipher",
    23  			"crypto/elliptic":          "elliptic",
    24  			"crypto/internal/randutil": "randutil",
    25  			"crypto/sha512":            "sha512",
    26  			"encoding/asn1":            "asn1",
    27  			"errors":                   "errors",
    28  			"io":                       "io",
    29  			"math/big":                 "big",
    30  		},
    31  		Interfaces: map[string]reflect.Type{},
    32  		NamedTypes: map[string]gossa.NamedType{
    33  			"PrivateKey": {reflect.TypeOf((*q.PrivateKey)(nil)).Elem(), "", "Public,Sign"},
    34  			"PublicKey":  {reflect.TypeOf((*q.PublicKey)(nil)).Elem(), "", ""},
    35  		},
    36  		AliasTypes: map[string]reflect.Type{},
    37  		Vars:       map[string]reflect.Value{},
    38  		Funcs: map[string]reflect.Value{
    39  			"GenerateKey": reflect.ValueOf(q.GenerateKey),
    40  			"Sign":        reflect.ValueOf(q.Sign),
    41  			"Verify":      reflect.ValueOf(q.Verify),
    42  		},
    43  		TypedConsts:   map[string]gossa.TypedConst{},
    44  		UntypedConsts: map[string]gossa.UntypedConst{},
    45  	})
    46  }