RSA.SignHash Metoda

Definicja

Przeciążenia

SignHash(Byte[], HashAlgorithmName, RSASignaturePadding)

Po zastąpieniu w klasie pochodnej oblicza podpis dla określonej wartości skrótu przy użyciu określonego wypełnienia.

SignHash(ReadOnlySpan<Byte>, HashAlgorithmName, RSASignaturePadding)

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

SignHash(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding)

Podpisuje skrót przy użyciu bieżącego klucza, zapisuj podpis w udostępnionym buforze.

SignHash(Byte[], HashAlgorithmName, RSASignaturePadding)

Źródło:
RSA.cs
Źródło:
RSA.cs
Źródło:
RSA.cs

Po zastąpieniu w klasie pochodnej oblicza podpis dla określonej wartości skrótu przy użyciu określonego wypełnienia.

public:
 virtual cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::RSASignaturePadding ^ padding);
public:
 abstract cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::RSASignaturePadding ^ padding);
public virtual byte[] SignHash (byte[] hash, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding);
public abstract byte[] SignHash (byte[] hash, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding);
abstract member SignHash : byte[] * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> byte[]
override this.SignHash : byte[] * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> byte[]
abstract member SignHash : byte[] * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> byte[]
Public Overridable Function SignHash (hash As Byte(), hashAlgorithm As HashAlgorithmName, padding As RSASignaturePadding) As Byte()
Public MustOverride 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

Klasa pochodna musi zastąpić tę metodę.

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.

Zobacz też

Dotyczy

SignHash(ReadOnlySpan<Byte>, HashAlgorithmName, RSASignaturePadding)

Źródło:
RSA.cs
Źródło:
RSA.cs
Źródło:
RSA.cs

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

public:
 cli::array <System::Byte> ^ SignHash(ReadOnlySpan<System::Byte> hash, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::RSASignaturePadding ^ padding);
public byte[] SignHash (ReadOnlySpan<byte> hash, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding);
member this.SignHash : ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> byte[]
Public Function SignHash (hash As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, padding As RSASignaturePadding) As Byte()

Parametry

hash
ReadOnlySpan<Byte>

Wartość skrótu danych do podpisania.

hashAlgorithm
HashAlgorithmName

Algorytm skrótu użyty do utworzenia skrótu .hash

padding
RSASignaturePadding

Tryb dopełnienia.

Zwraca

Byte[]

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

Wyjątki

padding lub hashAlgorithm's Name to null.

hashAlgorithm's Name jest pustym ciągiem.

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

SignHash(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding)

Źródło:
RSA.cs
Źródło:
RSA.cs
Źródło:
RSA.cs

Podpisuje skrót przy użyciu bieżącego klucza, zapisuj podpis w udostępnionym buforze.

public:
 int SignHash(ReadOnlySpan<System::Byte> hash, Span<System::Byte> destination, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::RSASignaturePadding ^ padding);
public int SignHash (ReadOnlySpan<byte> hash, Span<byte> destination, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding);
member this.SignHash : ReadOnlySpan<byte> * Span<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> int
Public Function SignHash (hash As ReadOnlySpan(Of Byte), destination As Span(Of Byte), hashAlgorithm As HashAlgorithmName, padding As RSASignaturePadding) As Integer

Parametry

hash
ReadOnlySpan<Byte>

Wartość skrótu danych do podpisania.

destination
Span<Byte>

Bufor do odbierania podpisu RSA.

hashAlgorithm
HashAlgorithmName

Algorytm skrótu użyty do utworzenia skrótu .hash

padding
RSASignaturePadding

Tryb dopełnienia.

Zwraca

Całkowita liczba bajtów zapisanych w pliku destination.

Wyjątki

padding lub hashAlgorithm's Name to null.

hashAlgorithm's Name jest pustym ciągiem.

-lub-

Bufor w pliku destination jest za mały, aby przechowywać podpis.

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