ECDsa.SignHash Metodo

Definizione

Overload

SignHash(Byte[])

Genera una firma digitale per il valore hash specificato.

SignHash(ReadOnlySpan<Byte>)

Calcola la firma ECDSA per il valore hash specificato.

SignHash(Byte[], DSASignatureFormat)

Calcola la firma ECDSA del valore hash specificato nel formato indicato.

SignHash(ReadOnlySpan<Byte>, DSASignatureFormat)

Calcola la firma ECDSA del valore hash specificato nel formato indicato.

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

Calcola la firma ECDSA per il valore hash specificato nel buffer specificato.

SignHash(ReadOnlySpan<Byte>, Span<Byte>, DSASignatureFormat)

Calcola la firma ECDSA per il valore hash specificato nel formato indicato nel buffer specificato.

SignHash(Byte[])

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

Genera una firma digitale per il valore hash specificato.

public:
 abstract cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash);
public abstract byte[] SignHash (byte[] hash);
abstract member SignHash : byte[] -> byte[]
Public MustOverride Function SignHash (hash As Byte()) As Byte()

Parametri

hash
Byte[]

Valore hash dei dati da firmare.

Restituisce

Byte[]

Firma digitale per il valore hash specificato.

Eccezioni

Il valore del parametro hash è null.

Si applica a

SignHash(ReadOnlySpan<Byte>)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

Calcola la firma ECDSA per il valore hash specificato.

public:
 cli::array <System::Byte> ^ SignHash(ReadOnlySpan<System::Byte> hash);
public byte[] SignHash (ReadOnlySpan<byte> hash);
member this.SignHash : ReadOnlySpan<byte> -> byte[]
Public Function SignHash (hash As ReadOnlySpan(Of Byte)) As Byte()

Parametri

hash
ReadOnlySpan<Byte>

Valore hash dei dati da firmare.

Restituisce

Byte[]

Firma digitale per il valore hash specificato.

Eccezioni

Si è verificato un errore nell'operazione di firma.

Commenti

Questo metodo userà IeeeP1363FixedFieldConcatenation per codificare la firma. Per usare un formato di firma diverso, usare SignHash(ReadOnlySpan<Byte>, DSASignatureFormat).

Si applica a

SignHash(Byte[], DSASignatureFormat)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

Calcola la firma ECDSA del valore hash specificato nel formato indicato.

public:
 cli::array <System::Byte> ^ SignHash(cli::array <System::Byte> ^ hash, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public byte[] SignHash (byte[] hash, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.SignHash : byte[] * System.Security.Cryptography.DSASignatureFormat -> byte[]
Public Function SignHash (hash As Byte(), signatureFormat As DSASignatureFormat) As Byte()

Parametri

hash
Byte[]

Valore hash da firmare.

signatureFormat
DSASignatureFormat

Formato di codifica da usare per la firma.

Restituisce

Byte[]

Firma ECDSA per i dati specificati.

Eccezioni

hash è null.

signatureFormat non è un formato noto.

Si è verificato un errore nell'operazione di firma.

Si applica a

SignHash(ReadOnlySpan<Byte>, DSASignatureFormat)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

Calcola la firma ECDSA del valore hash specificato nel formato indicato.

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

Parametri

hash
ReadOnlySpan<Byte>

Valore hash dei dati da firmare.

signatureFormat
DSASignatureFormat

Formato di codifica da usare per la firma.

Restituisce

Byte[]

Firma digitale per il valore hash specificato.

Eccezioni

signatureFormat non è un formato noto.

Si è verificato un errore nell'operazione di firma.

Si applica a

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

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

Calcola la firma ECDSA per il valore hash specificato nel buffer specificato.

public:
 int SignHash(ReadOnlySpan<System::Byte> hash, Span<System::Byte> destination);
public int SignHash (ReadOnlySpan<byte> hash, Span<byte> destination);
member this.SignHash : ReadOnlySpan<byte> * Span<byte> -> int
Public Function SignHash (hash As ReadOnlySpan(Of Byte), destination As Span(Of Byte)) As Integer

Parametri

hash
ReadOnlySpan<Byte>

Valore hash dei dati da firmare.

destination
Span<Byte>

Buffer per la ricezione della firma.

Restituisce

Numero totale di byte scritti in destination.

Eccezioni

Si è verificato un errore nell'operazione di firma.

Il buffer in destination è troppo piccolo per contenere la firma.

Commenti

Questo metodo userà IeeeP1363FixedFieldConcatenation per codificare la firma. Per usare un formato di firma diverso, usare SignHash(ReadOnlySpan<Byte>, Span<Byte>, DSASignatureFormat).

Si applica a

SignHash(ReadOnlySpan<Byte>, Span<Byte>, DSASignatureFormat)

Source:
ECDsa.cs
Source:
ECDsa.cs
Source:
ECDsa.cs

Calcola la firma ECDSA per il valore hash specificato nel formato indicato nel buffer specificato.

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

Parametri

hash
ReadOnlySpan<Byte>

Valore hash dei dati da firmare.

destination
Span<Byte>

Buffer per la ricezione della firma.

signatureFormat
DSASignatureFormat

Formato di codifica da usare per la firma.

Restituisce

Numero totale di byte scritti in destination.

Eccezioni

signatureFormat non è un formato noto.

Si è verificato un errore nell'operazione di firma.

Il buffer in destination è troppo piccolo per contenere la firma.

Si applica a