|
static int | GetPlainTextBlockSize (X509Certificate2 encryptingCertificate, bool useOaep) |
| Return the plaintext block size for RSA OAEP encryption. More...
|
|
static int | GetCipherTextBlockSize (X509Certificate2 encryptingCertificate, bool useOaep) |
| Return the ciphertext block size for RSA OAEP encryption. More...
|
|
static int | Pkcs15Sha1_GetSignatureLength (X509Certificate2 signingCertificate) |
| Returns the length of a RSA PKCS#1 v1.5 signature of a SHA1 digest. More...
|
|
static byte[] | Pkcs15Sha1_Sign (ArraySegment< byte > dataToSign, X509Certificate2 signingCertificate) |
| Computes an RSA/SHA1 PKCS#1 v1.5 signature. More...
|
|
static bool | Pkcs15Sha1_Verify (ArraySegment< byte > dataToVerify, byte[] signature, X509Certificate2 signingCertificate) |
| Verifies an RSA/SHA1 PKCS#1 v1.5 signature. More...
|
|
static int | Pkcs15Sha256_GetSignatureLength (X509Certificate2 signingCertificate) |
| Returns the length of a RSA PKCS#1 v1.5 signature of a SHA256 digest. More...
|
|
static byte[] | Pkcs15Sha256_Sign (ArraySegment< byte > dataToSign, X509Certificate2 signingCertificate) |
| Creates an RSA PKCS#1 v1.5 signature of a SHA256 for the stream. More...
|
|
static bool | Pkcs15Sha256_Verify (ArraySegment< byte > dataToVerify, byte[] signature, X509Certificate2 signingCertificate) |
| Verifies an RSA PKCS#1 v1.5 signature of a SHA256 for the stream. More...
|
|
static byte[] | Encrypt (byte[] dataToEncrypt, X509Certificate2 encryptingCertificate, bool useOaep) |
| Encrypts the data using RSA PKCS#1 v1.5 encryption. More...
|
|
static ArraySegment< byte > | Encrypt (ArraySegment< byte > dataToEncrypt, X509Certificate2 encryptingCertificate, bool useOaep, ArraySegment< byte > outputBuffer) |
| Encrypts the data using RSA PKCS#1 v1.5 or OAEP encryption. More...
|
|
static byte[] | Decrypt (ArraySegment< byte > dataToDecrypt, X509Certificate2 encryptingCertificate, bool useOaep) |
| Decrypts the data using RSA PKCS#1 v1.5 encryption. More...
|
|
static ArraySegment< byte > | Decrypt (ArraySegment< byte > dataToDecrypt, X509Certificate2 encryptingCertificate, bool useOaep, ArraySegment< byte > outputBuffer) |
| Decrypts the message using RSA OAEP encryption. More...
|
|
Defines functions to implement RSA cryptography.