ECDsa.SignData Metoda

Definicja

Oblicza wartość skrótu określonych danych i podpisuje ją.

Przeciążenia

SignData(Byte[], HashAlgorithmName)

Oblicza wartość skrótu określonej tablicy bajtów przy użyciu określonego algorytmu skrótu i podpisuje wynikową wartość skrótu.

SignData(Stream, HashAlgorithmName)

Oblicza wartość skrótu określonego strumienia przy użyciu określonego algorytmu skrótu i podpisuje wynikowej wartości skrótu.

SignData(ReadOnlySpan<Byte>, HashAlgorithmName)

Oblicza wartość skrótu określonych danych i podpisuje ją.

SignData(Byte[], HashAlgorithmName, DSASignatureFormat)

Oblicza wartość skrótu określonych danych i podpisuje je przy użyciu określonego formatu podpisu.

SignData(Stream, HashAlgorithmName, DSASignatureFormat)

Oblicza wartość skrótu określonych danych i podpisuje je przy użyciu określonego formatu podpisu.

SignData(ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

Oblicza wartość skrótu określonych danych i podpisuje je przy użyciu określonego formatu podpisu.

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

Oblicza wartość skrótu określonych danych i podpisuje je w wskazanym formacie do dostarczonego buforu.

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

Oblicza wartość skrótu części określonej tablicy bajtów przy użyciu określonego algorytmu skrótu i podpisuje wynikową wartość skrótu.

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

Oblicza wartość skrótu określonych danych i podpisuje je w wskazanym formacie do dostarczonego buforu.

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

Oblicza wartość skrótu określonych danych i podpisuje je przy użyciu określonego formatu podpisu.

SignData(Byte[], HashAlgorithmName)

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

Oblicza wartość skrótu określonej tablicy bajtów przy użyciu określonego algorytmu skrótu i podpisuje wynikową wartość skrótu.

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

Parametry

data
Byte[]

Dane wejściowe, dla których ma być obliczany skrót.

hashAlgorithm
HashAlgorithmName

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

Zwraca

Byte[]

Sygnatura ECDSA dla określonych danych.

Wyjątki

data to null.

hashAlgorithm.Name to null lub Empty.

Dotyczy

SignData(Stream, HashAlgorithmName)

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

Oblicza wartość skrótu określonego strumienia przy użyciu określonego algorytmu skrótu i podpisuje wynikowej wartości skrótu.

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

Parametry

data
Stream

Strumień wejściowy, dla którego ma być obliczany skrót.

hashAlgorithm
HashAlgorithmName

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

Zwraca

Byte[]

Sygnatura ECDSA dla określonych danych.

Wyjątki

data to null.

hashAlgorithm.Name to null lub Empty.

Dotyczy

SignData(ReadOnlySpan<Byte>, HashAlgorithmName)

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

Oblicza wartość skrótu określonych danych i podpisuje ją.

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

Parametry

data
ReadOnlySpan<Byte>

Dane do utworzenia skrótu i podpisania.

hashAlgorithm
HashAlgorithmName

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

Zwraca

Byte[]

Sygnatura ECDSA dla określonych danych.

Wyjątki

hashAlgorithm's Name jest pustym ciągiem.

hashAlgorithm's Name to null.

Uwagi

Ta metoda zostanie użyta IeeeP1363FixedFieldConcatenation do zakodowania podpisu. Aby użyć innego formatu podpisu, użyj polecenia SignData(ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat).

Dotyczy

SignData(Byte[], HashAlgorithmName, DSASignatureFormat)

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

Oblicza wartość skrótu określonych danych i podpisuje je przy użyciu określonego formatu podpisu.

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

Parametry

data
Byte[]

Dane do podpisania.

hashAlgorithm
HashAlgorithmName

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

signatureFormat
DSASignatureFormat

Format kodowania używany na potrzeby podpisu.

Zwraca

Byte[]

Sygnatura ECDSA dla określonych danych.

Wyjątki

data to null.

signatureFormat nie jest znanym formatem.

hashAlgorithm ma wartość lub jest pusta nullName.

Wystąpił błąd podczas operacji tworzenia skrótów lub podpisywania.

Dotyczy

SignData(Stream, HashAlgorithmName, DSASignatureFormat)

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

Oblicza wartość skrótu określonych danych i podpisuje je przy użyciu określonego formatu podpisu.

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

Parametry

data
Stream

Dane do podpisania.

hashAlgorithm
HashAlgorithmName

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

signatureFormat
DSASignatureFormat

Format kodowania używany na potrzeby podpisu.

Zwraca

Byte[]

Sygnatura ECDSA dla określonych danych.

Wyjątki

data to null.

signatureFormat nie jest znanym formatem.

hashAlgorithm ma wartość lub jest pusta nullName.

Wystąpił błąd podczas operacji tworzenia skrótów lub podpisywania.

Dotyczy

SignData(ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

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

Oblicza wartość skrótu określonych danych i podpisuje je przy użyciu określonego formatu podpisu.

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

Parametry

data
ReadOnlySpan<Byte>

Dane do utworzenia skrótu i podpisania.

hashAlgorithm
HashAlgorithmName

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

signatureFormat
DSASignatureFormat

Format kodowania używany na potrzeby podpisu.

Zwraca

Byte[]

Sygnatura ECDSA dla określonych danych.

Wyjątki

hashAlgorithm's Name jest pustym ciągiem.

hashAlgorithm's Name to null.

signatureFormat nie jest znanym formatem.

Dotyczy

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

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

Oblicza wartość skrótu określonych danych i podpisuje je w wskazanym formacie do dostarczonego buforu.

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

Parametry

data
ReadOnlySpan<Byte>

Dane do utworzenia skrótu i podpisania.

destination
Span<Byte>

Bufor do odbierania podpisu.

hashAlgorithm
HashAlgorithmName

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

Zwraca

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

Wyjątki

hashAlgorithm's Name jest pustym ciągiem.

-lub-

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

hashAlgorithm's Name to null.

Uwagi

Ta metoda zostanie użyta IeeeP1363FixedFieldConcatenation do zakodowania podpisu. Aby użyć innego formatu podpisu, użyj polecenia SignData(ReadOnlySpan<Byte>, Span<Byte>, HashAlgorithmName, DSASignatureFormat).

Dotyczy

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

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

Oblicza wartość skrótu części określonej tablicy bajtów przy użyciu określonego algorytmu skrótu i podpisuje wynikową wartość skrótu.

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

Parametry

data
Byte[]

Dane wejściowe, dla których ma być obliczany skrót.

offset
Int32

Przesunięcie do tablicy, w której należy rozpocząć korzystanie z danych.

count
Int32

Liczba bajtów w tablicy do użycia jako dane.

hashAlgorithm
HashAlgorithmName

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

Zwraca

Byte[]

Sygnatura ECDSA dla określonych danych.

Wyjątki

data to null.

hashAlgorithm.Name to null lub Empty.

Parametr offset ma wartość niższą niż zero.

-lub-

Parametr count ma wartość niższą niż zero.

-lub-

offset + count- 1 powoduje indeks, który znajduje się poza górną granicą .data

Dotyczy

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

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

Oblicza wartość skrótu określonych danych i podpisuje je w wskazanym formacie do dostarczonego buforu.

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

Parametry

data
ReadOnlySpan<Byte>

Dane do utworzenia skrótu i podpisania.

destination
Span<Byte>

Bufor do odbierania podpisu.

hashAlgorithm
HashAlgorithmName

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

signatureFormat
DSASignatureFormat

Format kodowania używany na potrzeby podpisu.

Zwraca

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

Wyjątki

hashAlgorithm's Name jest pustym ciągiem.

-lub-

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

hashAlgorithm's Name to null.

signatureFormat nie jest znanym formatem.

Dotyczy

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

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

Oblicza wartość skrótu określonych danych i podpisuje je przy użyciu określonego formatu podpisu.

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

Parametry

data
Byte[]

Dane do podpisania.

offset
Int32

Przesunięcie, data na które należy rozpocząć skrót.

count
Int32

Liczba bajtów do odczytania z elementu data.

hashAlgorithm
HashAlgorithmName

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

signatureFormat
DSASignatureFormat

Format kodowania używany na potrzeby podpisu.

Zwraca

Byte[]

Sygnatura ECDSA dla określonych danych.

Wyjątki

data to null.

signatureFormat nie jest znanym formatem.

-lub-

Parametr offset ma wartość niższą niż zero.

-lub-

Parametr count ma wartość niższą niż zero.

-lub-

offset + count- 1 powoduje indeks, który znajduje się poza górną granicą .data

hashAlgorithm ma wartość lub jest pusta nullName.

Wystąpił błąd podczas operacji tworzenia skrótów lub podpisywania.

Dotyczy