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 CNG(Cryptography Next Generation) 개체에서 KeyDerivationFunction 사용됩니다.

이 속성은 , , , Sha384Sha1Sha256Sha512알고리즘을 허용합니다. MD5

다른 사용자 지정 해시 알고리즘도 사용할 수 있습니다.

MD5 및 SHA1의 충돌 문제로 인해 Microsoft는 를 권장합니다 Sha256. 기본 알고리즘은 입니다 Sha256.

적용 대상