RSA.Decrypt 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| Decrypt(Byte[], RSAEncryptionPadding) |
使用指定的填補模式在衍生類別中覆寫,解密輸入的資料。 |
| Decrypt(ReadOnlySpan<Byte>, RSAEncryptionPadding) |
使用指定的填補模式解密輸入資料。 |
| Decrypt(ReadOnlySpan<Byte>, Span<Byte>, RSAEncryptionPadding) |
使用指定的填補模式解密輸入資料。 |
Decrypt(Byte[], RSAEncryptionPadding)
- 來源:
- RSA.cs
- 來源:
- RSA.cs
- 來源:
- RSA.cs
- 來源:
- 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)
- 來源:
- RSA.cs
- 來源:
- RSA.cs
- 來源:
- RSA.cs
- 來源:
- 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)
- 來源:
- RSA.cs
- 來源:
- RSA.cs
- 來源:
- RSA.cs
- 來源:
- 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 -> int
Public 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)