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된 총 바이트 수를 포함합니다.

반환

Boolean

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

예외

파생 클래스가 구현을 제공하지 않았습니다.

설명

파생 클래스는 이를 재정의하고 구현을 제공해야 합니다.

적용 대상