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

Definice

Podepíše data, která byla hashována pomocí zadaného algoritmu hash a režimu 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, která se má podepsat.

hashAlgorithm
HashAlgorithmName

Název hashovacího algoritmu.

padding
RSASignaturePadding

Režim odsazení.

Návraty

Byte[]

Podepsaná data.

Výjimky

hash je null.

-nebo-

padding je null.

Hodnota Name vlastnosti hashAlgorithm je null nebo Empty.

padding se nerovná Pkcs1 nebo Pss.

Platí pro