CngKey:CngKey
objets contiennent des propriétés. Certaines propriétés doivent être ajoutées à une clé lors de sa création. D'autres propriétés peuvent être ajoutées après la création de la clé.
CngKeyCreationParameters: La classe CngKeyCreationParameters
vous permet d'ajouter des propriétés à une clé car il est en cours de création.
votre problème:I'm not sure what to create as a CngKeyCreationParameters object
voici comment le font-
// Create CngKeyCreationParameters
CngKeyCreationParameters keyParams = new CngKeyCreationParameters();
// set properties accordingly
keyParams.ExportPolicy = CngExportPolicies.AllowArchiving;
keyParams.KeyCreationOptions = CngKeyCreationOptions.MachineKey;
keyParams.Provider = new CngProvider("someprovider");
// here is how to use keyParams
CngKey mycngKey =
CngKey.Create(new CngAlgorithm(""), "keyName", keyParams);
MSDN n'a pas une erreur pour moi sur ces deux pages: http://msdn.microsoft .com/fr-fr/library/system.security.cryptography.cngkeycreationparameters.aspx http://msdn.microsoft.com/fr-fr/library/bb359322.aspx –