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