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

Definición

Firma los datos que se aplicaron hash mediante el algoritmo hash especificado y el modo de relleno.

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[]

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 Name propiedad de hashAlgorithm es null o Empty.

padding no es igual Pkcs1 a ni Pss.

Se aplica a