Breyta

Deila með


SymmetricAlgorithm.TryDecryptEcbCore Method

Definition

When overridden in a derived class, attempts to decrypt data into the specified buffer, using ECB mode with the specified padding mode.

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

Parameters

ciphertext
ReadOnlySpan<Byte>

The data to decrypt.

destination
Span<Byte>

The buffer to receive the plaintext data.

paddingMode
PaddingMode

The padding mode used to produce the ciphertext and remove during decryption.

bytesWritten
Int32

When this method returns, contains the total number of bytes written to destination.

Returns

true if destination was large enough to receive the decrypted data; otherwise, false.

Exceptions

A derived class has not provided an implementation.

Remarks

Derived classes must override this and provide an implementation.

Applies to