ECDsaCng.SignHash(Byte[]) Método

Definición

Genera una firma del valor hash especificado.Generates a signature for the specified hash value.

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[]
Public Overrides Function SignHash (hash As Byte()) As Byte()

Parámetros

hash
Byte[]

Valor hash de los datos que se van a firmar.The hash value of the data to be signed.

Devoluciones

Byte[]

Firma digital del valor hash especificado.A digital signature for the specified hash value.

Atributos

Excepciones

hash es null.hash is null.

La información de clave asociada a la instancia no tiene una clave privada.The key information that is associated with the instance does not have a private key.

Comentarios

La marca de KeyContainerPermissionFlags.Sign es necesaria si el objeto ECDsaCng no genera de forma aleatoria la clave CNG (Cryptography Next Generation).The KeyContainerPermissionFlags.Sign flag is required if the Cryptography Next Generation (CNG) key is not randomly generated by the ECDsaCng object.

Se aplica a