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

Definicja

Podpisuje dane, które zostały skróty przy użyciu określonego algorytmu tworzenia skrótów i trybu uzupełniania.

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

Skrót do podpisania.

hashAlgorithm
HashAlgorithmName

Nazwa algorytmu skrótu.

padding
RSASignaturePadding

Tryb dopełnienia.

Zwraca

Byte[]

Podpisane dane.

Wyjątki

hash to null.

-lub-

padding to null.

Wartość właściwości hashAlgorithm właściwości Name to null lub Empty.

padding nie jest równe Pkcs1 lub Pss.

Dotyczy