SymmetricAlgorithm.TryDecryptCfbCore 方法

定義

在衍生類別中覆寫時,嘗試使用 CFB 模式搭配指定的填補模式和意見反應大小,將數據解密到指定的緩衝區。

C#
protected virtual bool TryDecryptCfbCore(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, Span<byte> destination, System.Security.Cryptography.PaddingMode paddingMode, int feedbackSizeInBits, out int bytesWritten);

參數

ciphertext
ReadOnlySpan<Byte>

要解密的資料。

iv
ReadOnlySpan<Byte>

初始化向量。

destination
Span<Byte>

要接收純文字數據的緩衝區。

paddingMode
PaddingMode

用來產生加密文字並在解密期間移除的填補模式。

feedbackSizeInBits
Int32

以位為單位指定的意見反應大小。

bytesWritten
Int32

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

傳回

true 如果 destination 夠大,無法接收解密的數據,則為 ,否則為 false

例外狀況

衍生類別尚未提供實作。

備註

衍生類別必須覆寫這個,並提供實作。

適用於

產品 版本
.NET 6, 7, 8, 9, 10