RSAOpenSsl.SignHash(Byte[], HashAlgorithmName, RSASignaturePadding) Metoda

Definice

Vypočítá podpis pro zadanou hodnotu hash pomocí zadaného odsazení.

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

Parametry

hash
Byte[]

Hodnota hash dat, která se mají podepsat.

hashAlgorithm
HashAlgorithmName

Hashovací algoritmus použitý k vytvoření hodnoty hash dat.

padding
RSASignaturePadding

Odsazení.

Návraty

Byte[]

Podpis RSA pro zadanou hodnotu hash.

Výjimky

data nebo padding je null.

hashAlgorithm.Name je null nebo Empty.

padding je neznámý nebo tato implementace nepodporuje.

-nebo-

Tato instance představuje pouze veřejný klíč.

-nebo-

Při vytváření podpisu došlo k chybě.

Platí pro

Viz také