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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     4  
     5  package sha512
     6  
     7  import (
     8  	q "crypto/sha512"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "sha512",
    19  		Path: "crypto/sha512",
    20  		Deps: map[string]string{
    21  			"crypto":          "crypto",
    22  			"encoding/binary": "binary",
    23  			"errors":          "errors",
    24  			"hash":            "hash",
    25  			"internal/cpu":    "cpu",
    26  			"math/bits":       "bits",
    27  		},
    28  		Interfaces: map[string]reflect.Type{},
    29  		NamedTypes: map[string]gossa.NamedType{},
    30  		AliasTypes: map[string]reflect.Type{},
    31  		Vars:       map[string]reflect.Value{},
    32  		Funcs: map[string]reflect.Value{
    33  			"New":        reflect.ValueOf(q.New),
    34  			"New384":     reflect.ValueOf(q.New384),
    35  			"New512_224": reflect.ValueOf(q.New512_224),
    36  			"New512_256": reflect.ValueOf(q.New512_256),
    37  			"Sum384":     reflect.ValueOf(q.Sum384),
    38  			"Sum512":     reflect.ValueOf(q.Sum512),
    39  			"Sum512_224": reflect.ValueOf(q.Sum512_224),
    40  			"Sum512_256": reflect.ValueOf(q.Sum512_256),
    41  		},
    42  		TypedConsts: map[string]gossa.TypedConst{},
    43  		UntypedConsts: map[string]gossa.UntypedConst{
    44  			"BlockSize": {"untyped int", constant.MakeInt64(int64(q.BlockSize))},
    45  			"Size":      {"untyped int", constant.MakeInt64(int64(q.Size))},
    46  			"Size224":   {"untyped int", constant.MakeInt64(int64(q.Size224))},
    47  			"Size256":   {"untyped int", constant.MakeInt64(int64(q.Size256))},
    48  			"Size384":   {"untyped int", constant.MakeInt64(int64(q.Size384))},
    49  		},
    50  	})
    51  }