KeyAlgorithmNames.Ecdh521 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回 「ECDH521」 作為金鑰演算法名稱。
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
屬性值
金鑰演算法名稱。
範例
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;
}