Example #1
0
        } // End Function DecryptInternal

        public override byte[] Decrypt(byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding)
        {
            if (data == null)
            {
                throw new System.ArgumentNullException(nameof(data));
            }

            if (padding == null)
            {
                throw new System.ArgumentNullException(nameof(padding));
            }

            if (padding == System.Security.Cryptography.RSAEncryptionPadding.Pkcs1)
            {
                return(this.DecryptInternal(data, false));
            }

            if (padding == System.Security.Cryptography.RSAEncryptionPadding.OaepSHA1)
            {
                return(this.DecryptInternal(data, true));
            }

            // throw RSACryptoServiceProvider.PaddingModeNotSupported();
            throw new System.Security.Cryptography.CryptographicException($"Unknown padding mode \"{padding}\".");
        } // End Function Decrypt
 public virtual byte[] Encrypt(byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding)
 {
     throw null;
 }
 public abstract byte[] Encrypt(byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding);
 public override byte[] Decrypt(byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding)
 {
     throw null;
 }
 public override byte[] Encrypt(byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding)
 {
     return(default(byte[]));
 }
Example #6
0
 public CmsRecipient(System.Security.Cryptography.Pkcs.SubjectIdentifierType recipientIdentifierType, System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Security.Cryptography.RSAEncryptionPadding rsaEncryptionPadding)
 {
 }
Example #7
0
 public CmsRecipient(System.Security.Cryptography.X509Certificates.X509Certificate2 certificate, System.Security.Cryptography.RSAEncryptionPadding rsaEncryptionPadding)
 {
 }
Example #8
0
 public virtual override byte[] Decrypt(byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding)
 {
     throw new NotImplementedException();
 }