DecryptWithCheck performs the RSA private key operation and checks the
result to defend against errors in the CRT computation.
DecryptWithoutCheck performs the RSA private key operation.
Encrypt performs the RSA public key operation.
EncryptOAEP encrypts the given message with RSAES-OAEP.
GenerateKey generates a new RSA key pair of the given bit size.
bits must be at least 128.
NewPrivateKey creates a new RSA private key from the given parameters.
All values are in big-endian byte slice format, and may have leading zeros
or be shorter if leading zeroes were trimmed.
NewPrivateKeyWithoutCRT creates a new RSA private key from the given parameters.
This is meant for deprecated multi-prime keys, and is not FIPS 140 compliant.
NewPrivateKeyWithPrecomputation creates a new RSA private key from the given
parameters, which include precomputed CRT values.
PSSMaxSaltLength returns the maximum salt length for a given public key and
hash function.
SignPKCS1v15 calculates an RSASSA-PKCS1-v1.5 signature.
hash is the name of the hash function as returned by [crypto.Hash.String]
or the empty string to indicate that the message is signed directly.
SignPSS calculates the signature of hashed using RSASSA-PSS.
VerifyPKCS1v15 verifies an RSASSA-PKCS1-v1.5 signature.
hash is the name of the hash function as returned by [crypto.Hash.String]
or the empty string to indicate that the message is signed directly.
VerifyPSS verifies sig with RSASSA-PSS automatically detecting the salt length.
VerifyPSS verifies sig with RSASSA-PSS and an expected salt length.
The pages are generated with Goldsv0.7.3-preview. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds.