Share via


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です。

注釈

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

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

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

MD5 と SHA1 の競合の問題により、Microsoft では をお Sha256勧めします。 既定のアルゴリズムは です Sha256

適用対象