Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
DecryptCfb(Byte[], Byte[], PaddingMode, Int32) |
Decrypts data using CFB mode with the specified padding mode and feedback size. |
DecryptCfb(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, PaddingMode, Int32) |
Decrypts data using CFB mode with the specified padding mode and feedback size. |
DecryptCfb(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, PaddingMode, Int32) |
Decrypts data into the specified buffer, using CFB mode with the specified padding mode and feedback size. |
Decrypts data using CFB mode with the specified padding mode and feedback size.
public byte[] DecryptCfb(byte[] ciphertext, byte[] iv, System.Security.Cryptography.PaddingMode paddingMode = System.Security.Cryptography.PaddingMode.None, int feedbackSizeInBits = 8);
member this.DecryptCfb : byte[] * byte[] * System.Security.Cryptography.PaddingMode * int -> byte[]
Public Function DecryptCfb (ciphertext As Byte(), iv As Byte(), Optional paddingMode As PaddingMode = System.Security.Cryptography.PaddingMode.None, Optional feedbackSizeInBits As Integer = 8) As Byte()
The data to decrypt.
The initialization vector.
The padding mode used to produce the ciphertext and remove during decryption.
The feedback size, specified in bits.
The decrypted plaintext data.
ciphertext
or iv
is null
.
paddingMode
is not a valid padding mode.
-or-
feedbackSizeInBits
is not positive or represent a whole number of bytes.
iv
is the incorrect length. Callers are expected to pass an initialization vector that is exactly BlockSize in length, converted to bytes (BlockSize / 8
).
The ciphertext could not be decrypted successfully.
-or-
The feedback size is not valid for the algorithm.
This method's behavior is defined by TryDecryptCfbCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, PaddingMode, Int32, Int32).
Product | Versions |
---|---|
.NET | 6, 7, 8, 9, 10 |
Decrypts data using CFB mode with the specified padding mode and feedback size.
public byte[] DecryptCfb(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, System.Security.Cryptography.PaddingMode paddingMode = System.Security.Cryptography.PaddingMode.None, int feedbackSizeInBits = 8);
member this.DecryptCfb : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.PaddingMode * int -> byte[]
Public Function DecryptCfb (ciphertext As ReadOnlySpan(Of Byte), iv As ReadOnlySpan(Of Byte), Optional paddingMode As PaddingMode = System.Security.Cryptography.PaddingMode.None, Optional feedbackSizeInBits As Integer = 8) As Byte()
The data to decrypt.
The initialization vector.
The padding mode used to produce the ciphertext and remove during decryption.
The feedback size, specified in bits.
The decrypted plaintext data.
paddingMode
is not a valid padding mode.
-or-
feedbackSizeInBits
is not positive or represent a whole number of bytes.
iv
is the incorrect length. Callers are expected to pass an initialization vector that is exactly BlockSize in length, converted to bytes (BlockSize / 8
).
The ciphertext could not be decrypted successfully.
-or-
The feedback size is not valid for the algorithm.
This method's behavior is defined by TryDecryptCfbCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, PaddingMode, Int32, Int32).
Product | Versions |
---|---|
.NET | 6, 7, 8, 9, 10 |
Decrypts data into the specified buffer, using CFB mode with the specified padding mode and feedback size.
public int DecryptCfb(ReadOnlySpan<byte> ciphertext, ReadOnlySpan<byte> iv, Span<byte> destination, System.Security.Cryptography.PaddingMode paddingMode = System.Security.Cryptography.PaddingMode.None, int feedbackSizeInBits = 8);
member this.DecryptCfb : ReadOnlySpan<byte> * ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.PaddingMode * int -> int
Public Function DecryptCfb (ciphertext As ReadOnlySpan(Of Byte), iv As ReadOnlySpan(Of Byte), destination As Span(Of Byte), Optional paddingMode As PaddingMode = System.Security.Cryptography.PaddingMode.None, Optional feedbackSizeInBits As Integer = 8) As Integer
The data to decrypt.
The initialization vector.
The padding mode used to produce the ciphertext and remove during decryption.
The feedback size, specified in bits.
The total number of bytes written to destination
.
paddingMode
is not a valid padding mode.
-or-
feedbackSizeInBits
is not positive or represent a whole number of bytes.
iv
is the incorrect length. Callers are expected to pass an initialization vector that is exactly BlockSize in length, converted to bytes (BlockSize / 8
).
-or-
The buffer in destination
is too small to hold the plaintext data.
The ciphertext could not be decrypted successfully.
-or-
feedbackSizeInBits
is not valid for the algorithm.
This method's behavior is defined by TryDecryptCfbCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, Span<Byte>, PaddingMode, Int32, Int32).
Product | Versions |
---|---|
.NET | 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in