次の方法で共有


SymmetricAlgorithm.TryDecryptCbcCore メソッド

定義

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

protected:
 virtual bool TryDecryptCbcCore(ReadOnlySpan<System::Byte> ciphertext, ReadOnlySpan<System::Byte> iv, Span<System::Byte> destination, System::Security::Cryptography::PaddingMode paddingMode, [Runtime::InteropServices::Out] int % bytesWritten);
protected virtual bool TryDecryptCbcCore (ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, Span<byte> destination, System.Security.Cryptography.PaddingMode paddingMode, out int bytesWritten);
abstract member TryDecryptCbcCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.PaddingMode * int -> bool
override this.TryDecryptCbcCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.PaddingMode * int -> bool
Protected Overridable Function TryDecryptCbcCore (ciphertext As ReadOnlySpan(Of Byte), iv As ReadOnlySpan(Of Byte), destination As Span(Of Byte), paddingMode As PaddingMode, ByRef bytesWritten As Integer) As Boolean

パラメーター

ciphertext
ReadOnlySpan<Byte>

復号化するデータ。

iv
ReadOnlySpan<Byte>

初期化ベクター。

destination
Span<Byte>

プレーンテキスト データを受信するバッファー。

paddingMode
PaddingMode

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

bytesWritten
Int32

このメソッドが戻るとき、 には に書き込まれたバイトの合計数が destination含まれます。

戻り値

true が復号化されたデータを受信するのに十分な大きさの場合 destination は 。それ以外の場合 falseは 。

例外

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

注釈

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

適用対象