RSA.SignData Methode

Definitie

Berekent de hashwaarde van de opgegeven gegevens en ondertekent deze.

Overloads

Name Description
SignData(Byte[], HashAlgorithmName, RSASignaturePadding)

Berekent de hashwaarde van de opgegeven bytematrix met behulp van het opgegeven hash-algoritme en de opvullingsmodus en ondertekent de resulterende hashwaarde.

SignData(Stream, HashAlgorithmName, RSASignaturePadding)

Berekent de hashwaarde van de opgegeven stream met behulp van het opgegeven hash-algoritme en de opvullingsmodus en ondertekent de resulterende hashwaarde.

SignData(ReadOnlySpan<Byte>, HashAlgorithmName, RSASignaturePadding)

Berekent de hashwaarde van de opgegeven gegevens en ondertekent deze.

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

Berekent de hash van de opgegeven gegevens met het opgegeven algoritme en ondertekent de hash met de huidige sleutel, waarbij de handtekening in een opgegeven buffer wordt geschreven.

SignData(Byte[], Int32, Int32, HashAlgorithmName, RSASignaturePadding)

Berekent de hashwaarde van een gedeelte van de opgegeven bytematrix met behulp van het opgegeven hash-algoritme en de opvullingsmodus en ondertekent de resulterende hashwaarde.

SignData(Byte[], HashAlgorithmName, RSASignaturePadding)

Bron:
RSA.cs
Bron:
RSA.cs
Bron:
RSA.cs
Bron:
RSA.cs
Bron:
RSA.cs

Berekent de hashwaarde van de opgegeven bytematrix met behulp van het opgegeven hash-algoritme en de opvullingsmodus en ondertekent de resulterende hashwaarde.

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

Parameters

data
Byte[]

De invoergegevens voor hash en teken.

hashAlgorithm
HashAlgorithmName

Het hash-algoritme dat moet worden gebruikt om de hash-waarde te maken.

padding
RSASignaturePadding

De opvullingsmodus.

Retouren

Byte[]

De RSA-handtekening voor de opgegeven gegevens.

Uitzonderingen

data is null.

– of –

padding is null.

hashAlgorithm.Name is null of Empty.

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

Van toepassing op

SignData(Stream, HashAlgorithmName, RSASignaturePadding)

Bron:
RSA.cs
Bron:
RSA.cs
Bron:
RSA.cs
Bron:
RSA.cs
Bron:
RSA.cs

Berekent de hashwaarde van de opgegeven stream met behulp van het opgegeven hash-algoritme en de opvullingsmodus en ondertekent de resulterende hashwaarde.

public:
 virtual cli::array <System::Byte> ^ SignData(System::IO::Stream ^ data, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::RSASignaturePadding ^ padding);
public virtual byte[] SignData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding);
abstract member SignData : System.IO.Stream * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> byte[]
override this.SignData : System.IO.Stream * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> byte[]
Public Overridable Function SignData (data As Stream, hashAlgorithm As HashAlgorithmName, padding As RSASignaturePadding) As Byte()

Parameters

data
Stream

De invoerstroom naar hash en teken.

hashAlgorithm
HashAlgorithmName

Het hash-algoritme dat moet worden gebruikt om de hash-waarde te maken.

padding
RSASignaturePadding

De opvullingsmodus.

Retouren

Byte[]

De RSA-handtekening voor de opgegeven gegevens.

Uitzonderingen

data is null.

– of –

padding is null.

hashAlgorithm.Name is null of Empty.

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

Van toepassing op

SignData(ReadOnlySpan<Byte>, HashAlgorithmName, RSASignaturePadding)

Bron:
RSA.cs
Bron:
RSA.cs
Bron:
RSA.cs
Bron:
RSA.cs
Bron:
RSA.cs

Berekent de hashwaarde van de opgegeven gegevens en ondertekent deze.

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

Parameters

data
ReadOnlySpan<Byte>

De invoergegevens voor hash en teken.

hashAlgorithm
HashAlgorithmName

Het hash-algoritme dat moet worden gebruikt om de hash-waarde te maken.

padding
RSASignaturePadding

De opvullingsmodus.

Retouren

Byte[]

De RSA-handtekening voor de opgegeven gegevens.

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.

Van toepassing op

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

Bron:
RSA.cs
Bron:
RSA.cs
Bron:
RSA.cs
Bron:
RSA.cs
Bron:
RSA.cs

Berekent de hash van de opgegeven gegevens met het opgegeven algoritme en ondertekent de hash met de huidige sleutel, waarbij de handtekening in een opgegeven buffer wordt geschreven.

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

Parameters

data
ReadOnlySpan<Byte>

De invoergegevens voor hash en teken.

destination
Span<Byte>

De buffer voor het ontvangen van de RSA-handtekening.

hashAlgorithm
HashAlgorithmName

Het hash-algoritme dat moet worden gebruikt om de hash-waarde te maken.

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.

Van toepassing op

SignData(Byte[], Int32, Int32, HashAlgorithmName, RSASignaturePadding)

Bron:
RSA.cs
Bron:
RSA.cs
Bron:
RSA.cs
Bron:
RSA.cs
Bron:
RSA.cs

Berekent de hashwaarde van een gedeelte van de opgegeven bytematrix met behulp van het opgegeven hash-algoritme en de opvullingsmodus en ondertekent de resulterende hashwaarde.

public:
 virtual cli::array <System::Byte> ^ SignData(cli::array <System::Byte> ^ data, int offset, int count, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::RSASignaturePadding ^ padding);
public virtual byte[] SignData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.RSASignaturePadding padding);
abstract member SignData : byte[] * int * int * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> byte[]
override this.SignData : byte[] * int * int * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.RSASignaturePadding -> byte[]
Public Overridable Function SignData (data As Byte(), offset As Integer, count As Integer, hashAlgorithm As HashAlgorithmName, padding As RSASignaturePadding) As Byte()

Parameters

data
Byte[]

De invoergegevens voor hash en teken.

offset
Int32

De verschuiving in de matrix waarop gegevens moeten worden gebruikt.

count
Int32

Het aantal bytes in de matrix dat moet worden gebruikt als gegevens.

hashAlgorithm
HashAlgorithmName

Het hash-algoritme dat moet worden gebruikt om de hash-waarde te maken.

padding
RSASignaturePadding

De opvullingsmodus.

Retouren

Byte[]

De RSA-handtekening voor de opgegeven gegevens.

Uitzonderingen

data is null.

– of –

padding is null.

hashAlgorithm.Name is null of Empty.

offset is kleiner dan nul.

– of –

count is kleiner dan nul.

– of –

offset + count - 1 resulteert in een index die buiten de bovengrens van data.

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

Van toepassing op