package
0.0.0-20130121074735-1d03baafba06
Repository: https://github.com/icattlecoder/go.git
Documentation: pkg.go.dev

# Functions

DecryptOAEP decrypts ciphertext using RSA-OAEP.
DecryptPKCS1v15 decrypts a plaintext using RSA and the padding scheme from PKCS#1 v1.5.
DecryptPKCS1v15SessionKey decrypts a session key using RSA and the padding scheme from PKCS#1 v1.5.
EncryptOAEP encrypts the given message with RSA-OAEP.
EncryptPKCS1v15 encrypts the given message with RSA and the padding scheme from PKCS#1 v1.5.
GenerateKey generates an RSA keypair of the given bit size.
GenerateMultiPrimeKey generates a multi-prime RSA keypair of the given bit size, as suggested in [1].
SignPKCS1v15 calculates the signature of hashed using RSASSA-PKCS1-V1_5-SIGN from RSA PKCS#1 v1.5.
VerifyPKCS1v15 verifies an RSA PKCS#1 v1.5 signature.

# Variables

ErrDecryption represents a failure to decrypt a message.
ErrMessageTooLong is returned when attempting to encrypt a message which is too large for the size of the public key.
ErrVerification represents a failure to verify a signature.

# Structs

CRTValue contains the precomputed chinese remainder theorem values.
No description provided by the author
A PrivateKey represents an RSA key.
A PublicKey represents the public part of an RSA key.