SymmetricAlgorithm.TryDecryptEcb メソッド

定義

指定したパディング モードで ECB モードを使用して、指定したバッファーにデータの復号化を試みます。

public:
 bool TryDecryptEcb(ReadOnlySpan<System::Byte> ciphertext, Span<System::Byte> destination, System::Security::Cryptography::PaddingMode paddingMode, [Runtime::InteropServices::Out] int % bytesWritten);
public bool TryDecryptEcb(ReadOnlySpan<byte> ciphertext, Span<byte> destination, System.Security.Cryptography.PaddingMode paddingMode, out int bytesWritten);
member this.TryDecryptEcb : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.PaddingMode * int -> bool
Public Function TryDecryptEcb (ciphertext As ReadOnlySpan(Of Byte), destination As Span(Of Byte), paddingMode As PaddingMode, ByRef bytesWritten As Integer) As Boolean

パラメーター

ciphertext
ReadOnlySpan<Byte>

復号化するデータ。

destination
Span<Byte>

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

paddingMode
PaddingMode

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

bytesWritten
Int32

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

返品

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

例外

paddingMode は有効な埋め込みモードではありません。

暗号テキストを正常に復号化できませんでした。

注釈

このメソッドの動作は、 TryDecryptEcbCore(ReadOnlySpan<Byte>, Span<Byte>, PaddingMode, Int32)によって定義されます。

適用対象