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し、報告します。

適用対象