KeyAlgorithmNames.Ecdh521 Propriété
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.
Retourne « ECDH521 » comme nom d’algorithme de clé.
public:
static property Platform::String ^ Ecdh521 { Platform::String ^ get(); };
static winrt::hstring Ecdh521();
public static string Ecdh521 { get; }
var string = KeyAlgorithmNames.ecdh521;
Public Shared ReadOnly Property Ecdh521 As String
Valeur de propriété
Nom de l’algorithme de clé.
Exemples
public void SamplePublicKeyAlgNames()
{
// Create a new CertificateRequestProperties object.
CertificateRequestProperties reqProperties = new CertificateRequestProperties();
// Retrieve the default value (RSA).
String strDefaultAlgName = reqProperties.KeyAlgorithmName;
// Set the value to DSA.
reqProperties.KeyAlgorithmName = KeyAlgorithmNames.Dsa;
//Set the value to ECDH_P256.
reqProperties.KeyAlgorithmName = KeyAlgorithmNames.Ecdh256;
//Set the value to ECDH_P384.
reqProperties.KeyAlgorithmName = KeyAlgorithmNames.Ecdh384;
//Set the value to ECDH_P521.
reqProperties.KeyAlgorithmName = KeyAlgorithmNames.Ecdh521;
//Set the value to ECDSA_P256.
reqProperties.KeyAlgorithmName = KeyAlgorithmNames.Ecdsa256;
//Set the value to ECDSA_P384.
reqProperties.KeyAlgorithmName = KeyAlgorithmNames.Ecdsa384;
//Set the value to ECDSA_P521.
reqProperties.KeyAlgorithmName = KeyAlgorithmNames.Ecdsa521;
}