github.com/goplus/gossa@v0.3.25/pkg/crypto/rsa/go118_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.18 4 // +build go1.18 5 6 package rsa 7 8 import ( 9 q "crypto/rsa" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.Package{ 19 Name: "rsa", 20 Path: "crypto/rsa", 21 Deps: map[string]string{ 22 "bytes": "bytes", 23 "crypto": "crypto", 24 "crypto/internal/randutil": "randutil", 25 "crypto/rand": "rand", 26 "crypto/subtle": "subtle", 27 "errors": "errors", 28 "hash": "hash", 29 "io": "io", 30 "math": "math", 31 "math/big": "big", 32 }, 33 Interfaces: map[string]reflect.Type{}, 34 NamedTypes: map[string]gossa.NamedType{ 35 "CRTValue": {reflect.TypeOf((*q.CRTValue)(nil)).Elem(), "", ""}, 36 "OAEPOptions": {reflect.TypeOf((*q.OAEPOptions)(nil)).Elem(), "", ""}, 37 "PKCS1v15DecryptOptions": {reflect.TypeOf((*q.PKCS1v15DecryptOptions)(nil)).Elem(), "", ""}, 38 "PSSOptions": {reflect.TypeOf((*q.PSSOptions)(nil)).Elem(), "", "HashFunc,saltLength"}, 39 "PrecomputedValues": {reflect.TypeOf((*q.PrecomputedValues)(nil)).Elem(), "", ""}, 40 "PrivateKey": {reflect.TypeOf((*q.PrivateKey)(nil)).Elem(), "", "Decrypt,Equal,Precompute,Public,Sign,Validate"}, 41 "PublicKey": {reflect.TypeOf((*q.PublicKey)(nil)).Elem(), "", "Equal,Size"}, 42 }, 43 AliasTypes: map[string]reflect.Type{}, 44 Vars: map[string]reflect.Value{ 45 "ErrDecryption": reflect.ValueOf(&q.ErrDecryption), 46 "ErrMessageTooLong": reflect.ValueOf(&q.ErrMessageTooLong), 47 "ErrVerification": reflect.ValueOf(&q.ErrVerification), 48 }, 49 Funcs: map[string]reflect.Value{ 50 "DecryptOAEP": reflect.ValueOf(q.DecryptOAEP), 51 "DecryptPKCS1v15": reflect.ValueOf(q.DecryptPKCS1v15), 52 "DecryptPKCS1v15SessionKey": reflect.ValueOf(q.DecryptPKCS1v15SessionKey), 53 "EncryptOAEP": reflect.ValueOf(q.EncryptOAEP), 54 "EncryptPKCS1v15": reflect.ValueOf(q.EncryptPKCS1v15), 55 "GenerateKey": reflect.ValueOf(q.GenerateKey), 56 "GenerateMultiPrimeKey": reflect.ValueOf(q.GenerateMultiPrimeKey), 57 "SignPKCS1v15": reflect.ValueOf(q.SignPKCS1v15), 58 "SignPSS": reflect.ValueOf(q.SignPSS), 59 "VerifyPKCS1v15": reflect.ValueOf(q.VerifyPKCS1v15), 60 "VerifyPSS": reflect.ValueOf(q.VerifyPSS), 61 }, 62 TypedConsts: map[string]gossa.TypedConst{}, 63 UntypedConsts: map[string]gossa.UntypedConst{ 64 "PSSSaltLengthAuto": {"untyped int", constant.MakeInt64(int64(q.PSSSaltLengthAuto))}, 65 "PSSSaltLengthEqualsHash": {"untyped int", constant.MakeInt64(int64(q.PSSSaltLengthEqualsHash))}, 66 }, 67 }) 68 }