SymmetricAlgorithm.TryEncryptCfbCore メソッド

定義

派生クラスでオーバーライドされると、指定したパディング モードとフィードバック サイズの CFB モードを使用して、指定したバッファーにデータを暗号化しようとします。

protected:
 virtual bool TryEncryptCfbCore(ReadOnlySpan<System::Byte> plaintext, ReadOnlySpan<System::Byte> iv, Span<System::Byte> destination, System::Security::Cryptography::PaddingMode paddingMode, int feedbackSizeInBits, [Runtime::InteropServices::Out] int % bytesWritten);
protected virtual bool TryEncryptCfbCore(ReadOnlySpan<byte> plaintext, ReadOnlySpan<byte> iv, Span<byte> destination, System.Security.Cryptography.PaddingMode paddingMode, int feedbackSizeInBits, out int bytesWritten);
abstract member TryEncryptCfbCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.PaddingMode * int * int -> bool
override this.TryEncryptCfbCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.PaddingMode * int * int -> bool
Protected Overridable Function TryEncryptCfbCore (plaintext 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

パラメーター

plaintext
ReadOnlySpan<Byte>

暗号化するデータ。

iv
ReadOnlySpan<Byte>

初期化ベクター。

destination
Span<Byte>

暗号テキスト データを受信するバッファー。

paddingMode
PaddingMode

暗号化テキストを生成し、復号化中に削除するために使用されるパディング モード。

feedbackSizeInBits
Int32

ビット単位で指定されたフィードバック サイズ。

bytesWritten
Int32

このメソッドから制御が戻るときに、 destinationに書き込まれた合計バイト数が格納されます。

返品

true 暗号化されたデータ destination 受信するのに十分な大きさであった場合は #。それ以外の場合は false

例外

派生クラスが実装を提供していません。

注釈

派生クラスはこれをオーバーライドし、実装を提供する必要があります。

このメソッドの実装では、正確に記述する必要があります GetCiphertextLengthCfb(plaintext.Length, paddingMode, feedbackSizeInBits) を使用して destination し、 bytesWrittenを介して報告します。

適用対象