-
Notifications
You must be signed in to change notification settings - Fork 14
/
go119_export.go
executable file
·52 lines (46 loc) · 1.63 KB
/
go119_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
// export by github.com/goplus/igop/cmd/qexp
//go:build go1.19
// +build go1.19
package dsa
import (
q "crypto/dsa"
"go/constant"
"reflect"
"github.com/goplus/igop"
)
func init() {
igop.RegisterPackage(&igop.Package{
Name: "dsa",
Path: "crypto/dsa",
Deps: map[string]string{
"crypto/internal/randutil": "randutil",
"errors": "errors",
"io": "io",
"math/big": "big",
},
Interfaces: map[string]reflect.Type{},
NamedTypes: map[string]reflect.Type{
"ParameterSizes": reflect.TypeOf((*q.ParameterSizes)(nil)).Elem(),
"Parameters": reflect.TypeOf((*q.Parameters)(nil)).Elem(),
"PrivateKey": reflect.TypeOf((*q.PrivateKey)(nil)).Elem(),
"PublicKey": reflect.TypeOf((*q.PublicKey)(nil)).Elem(),
},
AliasTypes: map[string]reflect.Type{},
Vars: map[string]reflect.Value{
"ErrInvalidPublicKey": reflect.ValueOf(&q.ErrInvalidPublicKey),
},
Funcs: map[string]reflect.Value{
"GenerateKey": reflect.ValueOf(q.GenerateKey),
"GenerateParameters": reflect.ValueOf(q.GenerateParameters),
"Sign": reflect.ValueOf(q.Sign),
"Verify": reflect.ValueOf(q.Verify),
},
TypedConsts: map[string]igop.TypedConst{
"L1024N160": {reflect.TypeOf(q.L1024N160), constant.MakeInt64(int64(q.L1024N160))},
"L2048N224": {reflect.TypeOf(q.L2048N224), constant.MakeInt64(int64(q.L2048N224))},
"L2048N256": {reflect.TypeOf(q.L2048N256), constant.MakeInt64(int64(q.L2048N256))},
"L3072N256": {reflect.TypeOf(q.L3072N256), constant.MakeInt64(int64(q.L3072N256))},
},
UntypedConsts: map[string]igop.UntypedConst{},
})
}