RSACng.SignHash(Byte[], HashAlgorithmName, RSASignaturePadding) Método

Definición

Firma los datos a los que se aplicó un algoritmo hash mediante el algoritmo hash y el modo de relleno especificados.

public:
 override cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::RSASignaturePadding ^ padding);
public override byte[] SignHash (byte[] hash, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding);
override this.SignHash : byte[] * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> byte[]
Public Overrides Function SignHash (hash As Byte(), hashAlgorithm As HashAlgorithmName, padding As RSASignaturePadding) As Byte()

Parámetros

hash
Byte[]

Valor hash que se va a firmar.

hashAlgorithm
HashAlgorithmName

Nombre del algoritmo hash.

padding
RSASignaturePadding

Modo de relleno.

Devoluciones

Byte[]

Datos firmados.

Excepciones

hash es null.

o bien

padding es null.

El valor de la propiedad Name de hashAlgorithm es null o Empty.

padding no es igual a Pkcs1 ni Pss.

Se aplica a