SymmetricAlgorithm.TryDecryptCfbCore 方法

定義

當在派生類別中覆寫時,嘗試將資料解密到指定的緩衝區,使用指定的填充模式與反饋大小的 CFB 模式。

protected:
 virtual bool TryDecryptCfbCore(ReadOnlySpan<System::Byte> ciphertext, ReadOnlySpan<System::Byte> iv, Span<System::Byte> destination, System::Security::Cryptography::PaddingMode paddingMode, int feedbackSizeInBits, [Runtime::InteropServices::Out] int % bytesWritten);
protected virtual bool TryDecryptCfbCore(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, Span<byte> destination, System.Security.Cryptography.PaddingMode paddingMode, int feedbackSizeInBits, out int bytesWritten);
abstract member TryDecryptCfbCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.PaddingMode * int * int -> bool
override this.TryDecryptCfbCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.PaddingMode * int * int -> bool
Protected Overridable Function TryDecryptCfbCore (ciphertext As ReadOnlySpan(Of Byte), iv As ReadOnlySpan(Of Byte), destination As Span(Of Byte), paddingMode As PaddingMode, feedbackSizeInBits As Integer, ByRef bytesWritten As Integer) As Boolean

參數

ciphertext
ReadOnlySpan<Byte>

要解密的資料。

iv
ReadOnlySpan<Byte>

初始化向量。

destination
Span<Byte>

緩衝區用來接收明文資料。

paddingMode
PaddingMode

填充模式用於產生密文並在解密時移除。

feedbackSizeInBits
Int32

反饋大小,以位元單位表示。

bytesWritten
Int32

當此方法回傳時,包含寫入 destination的總位元組數。

傳回

true 如果 destination 足夠大以接收解密資料;否則, false

例外狀況

派生類別尚未提供實作。

備註

衍生類別必須覆蓋此限制並提供實作。

適用於