Udostępnij za pośrednictwem


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

Definicja

Oblicza podpis dla określonej wartości skrótu przy użyciu określonego wypełnienia.

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

Wartość skrótu danych do podpisania.

hashAlgorithm
HashAlgorithmName

Algorytm skrótu używany do tworzenia wartości skrótu danych.

padding
RSASignaturePadding

Dopełnienie.

Zwraca

Byte[]

Sygnatura RSA dla określonej wartości skrótu.

Wyjątki

data lub padding ma wartość null.

hashAlgorithm.Name to null lub Empty.

padding jest nieznany lub nie jest obsługiwany przez tę implementację.

-lub-

To wystąpienie reprezentuje tylko klucz publiczny.

-lub-

Wystąpił błąd podczas tworzenia podpisu.

Dotyczy

Zobacz też