RSA.SignHash Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Overloads
| Name | Description |
|---|---|
| SignHash(Byte[], HashAlgorithmName, RSASignaturePadding) |
Wanneer deze wordt overschreven in een afgeleide klasse, berekent u de handtekening voor de opgegeven hashwaarde met behulp van de opgegeven opvulling. |
| SignHash(ReadOnlySpan<Byte>, HashAlgorithmName, RSASignaturePadding) |
Berekent de handtekening voor de opgegeven hashwaarde met behulp van de opgegeven opvulling. |
| SignHash(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding) |
Ondertekent de hash met de huidige sleutel en schrijft de handtekening in een opgegeven buffer. |
SignHash(Byte[], HashAlgorithmName, RSASignaturePadding)
- Bron:
- RSA.cs
- Bron:
- RSA.cs
- Bron:
- RSA.cs
- Bron:
- RSA.cs
- Bron:
- RSA.cs
Wanneer deze wordt overschreven in een afgeleide klasse, berekent u de handtekening voor de opgegeven hashwaarde met behulp van de opgegeven opvulling.
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()
Parameters
- hash
- Byte[]
De hashwaarde van de te ondertekenen gegevens.
- hashAlgorithm
- HashAlgorithmName
Het hash-algoritme dat wordt gebruikt om de hashwaarde van de gegevens te maken.
- padding
- RSASignaturePadding
De opvulling.
Retouren
De RSA-handtekening voor de opgegeven hashwaarde.
Uitzonderingen
Een afgeleide klasse moet deze methode overschrijven.
hash of padding is null.
padding is onbekend of wordt niet ondersteund door deze implementatie.
– of –
Dit exemplaar vertegenwoordigt alleen een openbare sleutel.
– of –
Er is een fout opgetreden bij het maken van de handtekening.
Zie ook
- TrySignHash(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding, Int32)
- SignData(Byte[], HashAlgorithmName, RSASignaturePadding)
Van toepassing op
SignHash(ReadOnlySpan<Byte>, HashAlgorithmName, RSASignaturePadding)
- Bron:
- RSA.cs
- Bron:
- RSA.cs
- Bron:
- RSA.cs
- Bron:
- RSA.cs
- Bron:
- RSA.cs
Berekent de handtekening voor de opgegeven hashwaarde met behulp van de opgegeven opvulling.
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()
Parameters
- hash
- ReadOnlySpan<Byte>
De hashwaarde van de te ondertekenen gegevens.
- hashAlgorithm
- HashAlgorithmName
Het hash-algoritme dat wordt gebruikt om de hash van hash.
- padding
- RSASignaturePadding
De opvullingsmodus.
Retouren
De RSA-handtekening voor de opgegeven hashwaarde.
Uitzonderingen
padding of hashAlgorithm's Name is null.
hashAlgorithm's Name is een lege tekenreeks.
padding is onbekend of wordt niet ondersteund door deze implementatie.
– of –
Dit exemplaar vertegenwoordigt alleen een openbare sleutel.
– of –
Er is een fout opgetreden bij het maken van de handtekening.
Deze implementatie heeft geen van TrySignHash(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding, Int32) of SignHash(Byte[], HashAlgorithmName, RSASignaturePadding).
Van toepassing op
SignHash(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding)
- Bron:
- RSA.cs
- Bron:
- RSA.cs
- Bron:
- RSA.cs
- Bron:
- RSA.cs
- Bron:
- RSA.cs
Ondertekent de hash met de huidige sleutel en schrijft de handtekening in een opgegeven buffer.
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
Parameters
- hash
- ReadOnlySpan<Byte>
De hashwaarde van de te ondertekenen gegevens.
- hashAlgorithm
- HashAlgorithmName
Het hash-algoritme dat wordt gebruikt om de hash van hash.
- padding
- RSASignaturePadding
De opvullingsmodus.
Retouren
Het totale aantal bytes dat naar destination.
Uitzonderingen
padding of hashAlgorithm's Name is null.
hashAlgorithm's Name is een lege tekenreeks.
– of –
De buffer is destination te klein om de handtekening op te slaan.
padding is onbekend of wordt niet ondersteund door deze implementatie.
– of –
Dit exemplaar vertegenwoordigt alleen een openbare sleutel.
– of –
Er is een fout opgetreden bij het maken van de handtekening.
Deze implementatie heeft geen van TrySignHash(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, RSASignaturePadding, Int32) of SignHash(Byte[], HashAlgorithmName, RSASignaturePadding).