RSA.Decrypt 方法 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| Decrypt(Byte[], RSAEncryptionPadding) | 在派生类中被重写时,使用指定的填充模式来解密输入数据。 | 
| Decrypt(ReadOnlySpan<Byte>, RSAEncryptionPadding) | 使用指定的填充模式对输入数据进行解密。 | 
| Decrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding) | 使用指定的填充模式对输入数据进行解密。 | 
Decrypt(Byte[], RSAEncryptionPadding)
- Source:
- RSA.cs
- Source:
- RSA.cs
- Source:
- RSA.cs
- Source:
- RSA.cs
在派生类中被重写时,使用指定的填充模式来解密输入数据。
public:
 virtual cli::array <System::Byte> ^ Decrypt(cli::array <System::Byte> ^ data, System::Security::Cryptography::RSAEncryptionPadding ^ padding);public:
 abstract cli::array <System::Byte> ^ Decrypt(cli::array <System::Byte> ^ data, System::Security::Cryptography::RSAEncryptionPadding ^ padding);public virtual byte[] Decrypt(byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding);public abstract byte[] Decrypt(byte[] data, System.Security.Cryptography.RSAEncryptionPadding padding);abstract member Decrypt : byte[] * System.Security.Cryptography.RSAEncryptionPadding -> byte[]
override this.Decrypt : byte[] * System.Security.Cryptography.RSAEncryptionPadding -> byte[]abstract member Decrypt : byte[] * System.Security.Cryptography.RSAEncryptionPadding -> byte[]Public Overridable Function Decrypt (data As Byte(), padding As RSAEncryptionPadding) As Byte()Public MustOverride Function Decrypt (data As Byte(), padding As RSAEncryptionPadding) As Byte()参数
- data
- Byte[]
要解密的数据。
- padding
- RSAEncryptionPadding
填充模式。
返回
已解密的数据。
例外
              data 或 padding 为 null。
派生方法必须重写此方法。
另请参阅
适用于
Decrypt(ReadOnlySpan<Byte>, RSAEncryptionPadding)
- Source:
- RSA.cs
- Source:
- RSA.cs
- Source:
- RSA.cs
- Source:
- RSA.cs
使用指定的填充模式对输入数据进行解密。
public:
 cli::array <System::Byte> ^ Decrypt(ReadOnlySpan<System::Byte> data, System::Security::Cryptography::RSAEncryptionPadding ^ padding);public byte[] Decrypt(ReadOnlySpan<byte> data, System.Security.Cryptography.RSAEncryptionPadding padding);member this.Decrypt : ReadOnlySpan<byte> * System.Security.Cryptography.RSAEncryptionPadding -> byte[]Public Function Decrypt (data As ReadOnlySpan(Of Byte), padding As RSAEncryptionPadding) As Byte()参数
- data
- ReadOnlySpan<Byte>
要解密的数据。
- padding
- RSAEncryptionPadding
填充模式。
返回
已解密的数据。
例外
              padding 为 null。
此实现尚未实现 或 TryDecrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding, Int32)之Decrypt(Byte[], RSAEncryptionPadding)一。
另请参阅
- Decrypt(Byte[], RSAEncryptionPadding)
- Decrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding)
- TryDecrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding, Int32)
适用于
Decrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding)
- Source:
- RSA.cs
- Source:
- RSA.cs
- Source:
- RSA.cs
- Source:
- RSA.cs
使用指定的填充模式对输入数据进行解密。
public:
 int Decrypt(ReadOnlySpan<System::Byte> data, Span<System::Byte> destination, System::Security::Cryptography::RSAEncryptionPadding ^ padding);public int Decrypt(ReadOnlySpan<byte> data, Span<byte> destination, System.Security.Cryptography.RSAEncryptionPadding padding);member this.Decrypt : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.RSAEncryptionPadding -> intPublic Function Decrypt (data As ReadOnlySpan(Of Byte), destination As Span(Of Byte), padding As RSAEncryptionPadding) As Integer参数
- data
- ReadOnlySpan<Byte>
要解密的数据。
- padding
- RSAEncryptionPadding
填充模式。
返回
写入 destination 的总字节数。
例外
              padding 为 null。
中的 destination 缓冲区太小,无法保存解密的数据。
此实现尚未实现 或 TryDecrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding, Int32)之Decrypt(Byte[], RSAEncryptionPadding)一。
另请参阅
- Decrypt(Byte[], RSAEncryptionPadding)
- Decrypt(ReadOnlySpan<Byte>, RSAEncryptionPadding)
- TryDecrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding, Int32)