github.com/goplus/gossa@v0.3.25/pkg/crypto/sha1/go116_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package sha1
     6  
     7  import (
     8  	q "crypto/sha1"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "sha1",
    19  		Path: "crypto/sha1",
    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  			"Sum": reflect.ValueOf(q.Sum),
    35  		},
    36  		TypedConsts: map[string]gossa.TypedConst{},
    37  		UntypedConsts: map[string]gossa.UntypedConst{
    38  			"BlockSize": {"untyped int", constant.MakeInt64(int64(q.BlockSize))},
    39  			"Size":      {"untyped int", constant.MakeInt64(int64(q.Size))},
    40  		},
    41  	})
    42  }