ECDsaCng.SignHash(Byte[]) Metoda

Definice

Vygeneruje podpis pro zadanou hodnotu hash.

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()

Parametry

hash
Byte[]

Hodnota hash dat, která se mají podepsat.

Návraty

Byte[]

Digitální podpis pro zadanou hodnotu hash.

Atributy

Výjimky

hash je null.

Klíčové informace přidružené k instanci nemají privátní klíč.

Poznámky

Příznak KeyContainerPermissionFlags.Sign je vyžadován, pokud klíč CNG (Cryptography Next Generation) není náhodně generován objektem ECDsaCng .

Platí pro