SymmetricAlgorithm.TryEncryptCfbCore Méthode

Définition

En cas de substitution dans une classe dérivée, tente de chiffrer les données dans la mémoire tampon spécifiée, en utilisant le mode de remplissage et la taille de commentaires spécifiés.

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

Paramètres

plaintext
ReadOnlySpan<Byte>

Données à chiffrer.

iv
ReadOnlySpan<Byte>

Vecteur d’initialisation.

destination
Span<Byte>

Mémoire tampon pour recevoir les données de texte chiffré.

paddingMode
PaddingMode

Mode de remplissage utilisé pour produire le texte chiffré et supprimer pendant le déchiffrement.

feedbackSizeInBits
Int32

Taille de commentaires, spécifiée en bits.

bytesWritten
Int32

Lorsque cette méthode est retournée, contient le nombre total d’octets écrits dans destination.

Retours

true s’il destination était suffisamment grand pour recevoir les données chiffrées ; sinon, false.

Exceptions

Une classe dérivée n’a pas fourni d’implémentation.

Remarques

Les classes dérivées doivent remplacer cela et fournir une implémentation.

Les implémentations de cette méthode doivent écrire précisément GetCiphertextLengthCfb(plaintext.Length, paddingMode, feedbackSizeInBits) Octets vers destination et signaler cela via bytesWritten.

S’applique à