InMemorySymmetricSecurityKey.GetIVSize(String) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient la taille, en bits, du vecteur d’initialisation (IV) requis pour l’algorithme de chiffrement spécifié.
public:
override int GetIVSize(System::String ^ algorithm);
public override int GetIVSize(string algorithm);
override this.GetIVSize : string -> int
Public Overrides Function GetIVSize (algorithm As String) As Integer
Paramètres
- algorithm
- String
Algorithme de chiffrement pour obtenir la taille du vecteur d’initialisation (IV).
Retours
Taille, en bits, du vecteur d’initialisation (IV) requis pour l’algorithme de chiffrement spécifié dans le algorithm paramètre.
Exceptions
La fonction algorithm n'est pas prise en charge. Les algorithmes pris en charge sont TripleDesEncryption, , Aes128EncryptionAes192Encryptionet Aes256Encryption.
Remarques
Utilisez les champs qui représentent des algorithmes de chiffrement dans la SecurityAlgorithms classe pour spécifier l’algorithme.