ECDsaCng.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

속성 값

CngAlgorithm

해시 알고리즘을 지정하는 개체입니다.

예외

값이 null인 경우

설명

이 속성은 다음과 같은 알고리즘을 허용합니다. MD5Sha1Sha256Sha384Sha512

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

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

이미 해시된 데이터에 서명하거나 확인하는 경우에는 이 속성이 사용되지 않습니다.

적용 대상