ECDsaCng.VerifyHash(Byte[], Byte[]) Método

Definición

Comprueba que una firma digital es adecuada para la clave actual y el hash de datos proporcionado.

public:
 override bool VerifyHash(cli::array <System::Byte> ^ hash, cli::array <System::Byte> ^ signature);
[System.Security.SecurityCritical]
public override bool VerifyHash(byte[] hash, byte[] signature);
public override bool VerifyHash(byte[] hash, byte[] signature);
[<System.Security.SecurityCritical>]
override this.VerifyHash : byte[] * byte[] -> bool
override this.VerifyHash : byte[] * byte[] -> bool
Public Overrides Function VerifyHash (hash As Byte(), signature As Byte()) As Boolean

Parámetros

hash
Byte[]

Valor hash de los datos que se van a comprobar.

signature
Byte[]

Firma digital de los datos que se van a comprobar con el valor hash.

Devoluciones

true si la firma es válida; de lo contrario, false.

Atributos

Excepciones

hash o signature es null.

Se aplica a