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