Share via


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

例外

派生类未提供实现。

注解

派生类必须重写此并提供实现。

适用于