github.com/goplus/igop@v0.25.0/pkg/crypto/sha512/go119_export.go (about)

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