-
Notifications
You must be signed in to change notification settings - Fork 14
/
go118_export.go
executable file
·68 lines (62 loc) · 2.73 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// export by github.com/goplus/igop/cmd/qexp
//go:build go1.18
// +build go1.18
package rsa
import (
q "crypto/rsa"
"go/constant"
"reflect"
"github.com/goplus/igop"
)
func init() {
igop.RegisterPackage(&igop.Package{
Name: "rsa",
Path: "crypto/rsa",
Deps: map[string]string{
"bytes": "bytes",
"crypto": "crypto",
"crypto/internal/randutil": "randutil",
"crypto/rand": "rand",
"crypto/subtle": "subtle",
"errors": "errors",
"hash": "hash",
"io": "io",
"math": "math",
"math/big": "big",
},
Interfaces: map[string]reflect.Type{},
NamedTypes: map[string]igop.NamedType{
"CRTValue": {reflect.TypeOf((*q.CRTValue)(nil)).Elem(), "", ""},
"OAEPOptions": {reflect.TypeOf((*q.OAEPOptions)(nil)).Elem(), "", ""},
"PKCS1v15DecryptOptions": {reflect.TypeOf((*q.PKCS1v15DecryptOptions)(nil)).Elem(), "", ""},
"PSSOptions": {reflect.TypeOf((*q.PSSOptions)(nil)).Elem(), "", "HashFunc,saltLength"},
"PrecomputedValues": {reflect.TypeOf((*q.PrecomputedValues)(nil)).Elem(), "", ""},
"PrivateKey": {reflect.TypeOf((*q.PrivateKey)(nil)).Elem(), "", "Decrypt,Equal,Precompute,Public,Sign,Validate"},
"PublicKey": {reflect.TypeOf((*q.PublicKey)(nil)).Elem(), "", "Equal,Size"},
},
AliasTypes: map[string]reflect.Type{},
Vars: map[string]reflect.Value{
"ErrDecryption": reflect.ValueOf(&q.ErrDecryption),
"ErrMessageTooLong": reflect.ValueOf(&q.ErrMessageTooLong),
"ErrVerification": reflect.ValueOf(&q.ErrVerification),
},
Funcs: map[string]reflect.Value{
"DecryptOAEP": reflect.ValueOf(q.DecryptOAEP),
"DecryptPKCS1v15": reflect.ValueOf(q.DecryptPKCS1v15),
"DecryptPKCS1v15SessionKey": reflect.ValueOf(q.DecryptPKCS1v15SessionKey),
"EncryptOAEP": reflect.ValueOf(q.EncryptOAEP),
"EncryptPKCS1v15": reflect.ValueOf(q.EncryptPKCS1v15),
"GenerateKey": reflect.ValueOf(q.GenerateKey),
"GenerateMultiPrimeKey": reflect.ValueOf(q.GenerateMultiPrimeKey),
"SignPKCS1v15": reflect.ValueOf(q.SignPKCS1v15),
"SignPSS": reflect.ValueOf(q.SignPSS),
"VerifyPKCS1v15": reflect.ValueOf(q.VerifyPKCS1v15),
"VerifyPSS": reflect.ValueOf(q.VerifyPSS),
},
TypedConsts: map[string]igop.TypedConst{},
UntypedConsts: map[string]igop.UntypedConst{
"PSSSaltLengthAuto": {"untyped int", constant.MakeInt64(int64(q.PSSSaltLengthAuto))},
"PSSSaltLengthEqualsHash": {"untyped int", constant.MakeInt64(int64(q.PSSSaltLengthEqualsHash))},
},
})
}