次の方法で共有


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

適用対象