-
Notifications
You must be signed in to change notification settings - Fork 14
/
go121_export.go
executable file
·47 lines (41 loc) · 1.22 KB
/
go121_export.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// export by github.com/goplus/igop/cmd/qexp
//go:build go1.21
// +build go1.21
package sha256
import (
q "crypto/sha256"
"go/constant"
"reflect"
"github.com/goplus/igop"
)
func init() {
igop.RegisterPackage(&igop.Package{
Name: "sha256",
Path: "crypto/sha256",
Deps: map[string]string{
"crypto": "crypto",
"crypto/internal/boring": "boring",
"encoding/binary": "binary",
"errors": "errors",
"hash": "hash",
"internal/cpu": "cpu",
"math/bits": "bits",
},
Interfaces: map[string]reflect.Type{},
NamedTypes: map[string]reflect.Type{},
AliasTypes: map[string]reflect.Type{},
Vars: map[string]reflect.Value{},
Funcs: map[string]reflect.Value{
"New": reflect.ValueOf(q.New),
"New224": reflect.ValueOf(q.New224),
"Sum224": reflect.ValueOf(q.Sum224),
"Sum256": reflect.ValueOf(q.Sum256),
},
TypedConsts: map[string]igop.TypedConst{},
UntypedConsts: map[string]igop.UntypedConst{
"BlockSize": {"untyped int", constant.MakeInt64(int64(q.BlockSize))},
"Size": {"untyped int", constant.MakeInt64(int64(q.Size))},
"Size224": {"untyped int", constant.MakeInt64(int64(q.Size224))},
},
})
}