SymmetricAlgorithm.TryDecryptCbcCore Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, attempts to decrypt data into the specified buffer, using CBC mode with the specified padding mode.
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>
The data to decrypt.
- iv
- ReadOnlySpan<Byte>
The initialization vector.
- 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
.
true
if destination
was large enough to receive the decrypted data; otherwise, false
.
A derived class has not provided an implementation.
Derived classes must override this and provide an implementation.
Product | Versions |
---|---|
.NET | 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: