Share via


ECDsaCng.SignHash(Byte[]) 메서드

정의

지정된 해시 값의 서명을 생성합니다.

public:
 override cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash);
public override byte[] SignHash (byte[] hash);
[System.Security.SecurityCritical]
public override byte[] SignHash (byte[] hash);
override this.SignHash : byte[] -> byte[]
[<System.Security.SecurityCritical>]
override this.SignHash : byte[] -> byte[]
Public Overrides Function SignHash (hash As Byte()) As Byte()

매개 변수

hash
Byte[]

서명할 데이터의 해시 값입니다.

반환

Byte[]

지정된 해시 값의 디지털 서명입니다.

특성

예외

hash이(가) null인 경우

인스턴스와 연결된 키 정보에는 프라이빗 키가 없습니다.

설명

KeyContainerPermissionFlags.Sign CNG(Cryptography Next Generation) 키가 개체에 의해 임의로 생성되지 않은 경우 플래그가 ECDsaCng 필요합니다.

적용 대상