ECDiffieHellmanCng.HashAlgorithm プロパティ

定義

キー マテリアルの生成時に使用するハッシュ アルゴリズムを取得または設定します。

public:
 property System::Security::Cryptography::CngAlgorithm ^ HashAlgorithm { System::Security::Cryptography::CngAlgorithm ^ get(); void set(System::Security::Cryptography::CngAlgorithm ^ value); };
public System.Security.Cryptography.CngAlgorithm HashAlgorithm { get; set; }
member this.HashAlgorithm : System.Security.Cryptography.CngAlgorithm with get, set
Public Property HashAlgorithm As CngAlgorithm

プロパティ値

ハッシュ アルゴリズムを指定するオブジェクト。

例外

値は nullです。

注釈

このプロパティは、 または の値が プロパティに設定されている場合HashHmacにのみ、Cryptography Next Generation (CNG) オブジェクトでKeyDerivationFunction使用されます。

このプロパティは、および の各アルゴリズムMD5Sha384Sha1Sha256Sha512受け入れます。

他のカスタム ハッシュ アルゴリズムも使用できます。

MD5 と SHA1 の競合の問題により、Microsoftでは が推奨されますSha256。 既定のアルゴリズムは です Sha256

適用対象