github.com/goplus/igop@v0.25.0/pkg/crypto/sha256/go114_export.go (about)

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