| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
package stdlib |
| 7 |
|
| 8 |
import ( |
| 9 |
"crypto/rsa" |
| 10 |
"go/constant" |
| 11 |
"go/token" |
| 12 |
"reflect" |
| 13 |
) |
| 14 |
|
| 15 |
func init() { |
| 16 |
Symbols["crypto/rsa/rsa"] = map[string]reflect.Value{ |
| 17 |
|
| 18 |
"DecryptOAEP": reflect.ValueOf(rsa.DecryptOAEP), |
| 19 |
"DecryptPKCS1v15": reflect.ValueOf(rsa.DecryptPKCS1v15), |
| 20 |
"DecryptPKCS1v15SessionKey": reflect.ValueOf(rsa.DecryptPKCS1v15SessionKey), |
| 21 |
"EncryptOAEP": reflect.ValueOf(rsa.EncryptOAEP), |
| 22 |
"EncryptPKCS1v15": reflect.ValueOf(rsa.EncryptPKCS1v15), |
| 23 |
"ErrDecryption": reflect.ValueOf(&rsa.ErrDecryption).Elem(), |
| 24 |
"ErrMessageTooLong": reflect.ValueOf(&rsa.ErrMessageTooLong).Elem(), |
| 25 |
"ErrVerification": reflect.ValueOf(&rsa.ErrVerification).Elem(), |
| 26 |
"GenerateKey": reflect.ValueOf(rsa.GenerateKey), |
| 27 |
"GenerateMultiPrimeKey": reflect.ValueOf(rsa.GenerateMultiPrimeKey), |
| 28 |
"PSSSaltLengthAuto": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), |
| 29 |
"PSSSaltLengthEqualsHash": reflect.ValueOf(constant.MakeFromLiteral("-1", token.INT, 0)), |
| 30 |
"SignPKCS1v15": reflect.ValueOf(rsa.SignPKCS1v15), |
| 31 |
"SignPSS": reflect.ValueOf(rsa.SignPSS), |
| 32 |
"VerifyPKCS1v15": reflect.ValueOf(rsa.VerifyPKCS1v15), |
| 33 |
"VerifyPSS": reflect.ValueOf(rsa.VerifyPSS), |
| 34 |
|
| 35 |
|
| 36 |
"CRTValue": reflect.ValueOf((*rsa.CRTValue)(nil)), |
| 37 |
"OAEPOptions": reflect.ValueOf((*rsa.OAEPOptions)(nil)), |
| 38 |
"PKCS1v15DecryptOptions": reflect.ValueOf((*rsa.PKCS1v15DecryptOptions)(nil)), |
| 39 |
"PSSOptions": reflect.ValueOf((*rsa.PSSOptions)(nil)), |
| 40 |
"PrecomputedValues": reflect.ValueOf((*rsa.PrecomputedValues)(nil)), |
| 41 |
"PrivateKey": reflect.ValueOf((*rsa.PrivateKey)(nil)), |
| 42 |
"PublicKey": reflect.ValueOf((*rsa.PublicKey)(nil)), |
| 43 |
} |
| 44 |
} |