-
Notifications
You must be signed in to change notification settings - Fork 14
/
go118_export.go
executable file
·53 lines (47 loc) · 1.69 KB
/
go118_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
48
49
50
51
52
53
// export by github.com/goplus/igop/cmd/qexp
//go:build go1.18
// +build go1.18
package cipher
import (
q "crypto/cipher"
"reflect"
"github.com/goplus/igop"
)
func init() {
igop.RegisterPackage(&igop.Package{
Name: "cipher",
Path: "crypto/cipher",
Deps: map[string]string{
"crypto/internal/subtle": "subtle",
"crypto/subtle": "subtle",
"encoding/binary": "binary",
"errors": "errors",
"io": "io",
},
Interfaces: map[string]reflect.Type{
"AEAD": reflect.TypeOf((*q.AEAD)(nil)).Elem(),
"Block": reflect.TypeOf((*q.Block)(nil)).Elem(),
"BlockMode": reflect.TypeOf((*q.BlockMode)(nil)).Elem(),
"Stream": reflect.TypeOf((*q.Stream)(nil)).Elem(),
},
NamedTypes: map[string]igop.NamedType{
"StreamReader": {reflect.TypeOf((*q.StreamReader)(nil)).Elem(), "Read", ""},
"StreamWriter": {reflect.TypeOf((*q.StreamWriter)(nil)).Elem(), "Close,Write", ""},
},
AliasTypes: map[string]reflect.Type{},
Vars: map[string]reflect.Value{},
Funcs: map[string]reflect.Value{
"NewCBCDecrypter": reflect.ValueOf(q.NewCBCDecrypter),
"NewCBCEncrypter": reflect.ValueOf(q.NewCBCEncrypter),
"NewCFBDecrypter": reflect.ValueOf(q.NewCFBDecrypter),
"NewCFBEncrypter": reflect.ValueOf(q.NewCFBEncrypter),
"NewCTR": reflect.ValueOf(q.NewCTR),
"NewGCM": reflect.ValueOf(q.NewGCM),
"NewGCMWithNonceSize": reflect.ValueOf(q.NewGCMWithNonceSize),
"NewGCMWithTagSize": reflect.ValueOf(q.NewGCMWithTagSize),
"NewOFB": reflect.ValueOf(q.NewOFB),
},
TypedConsts: map[string]igop.TypedConst{},
UntypedConsts: map[string]igop.UntypedConst{},
})
}