ECDsa.VerifyData Metoda

Definicja

Sprawdza, czy podpis cyfrowy jest odpowiedni dla bieżącego klucza i dostarcza dane z określonym algorytmem skrótu.

Przeciążenia

VerifyData(Byte[], Byte[], HashAlgorithmName)

Sprawdza, czy podpis cyfrowy jest odpowiedni dla bieżącego klucza i dostarczył dane z określonym algorytmem skrótu.

VerifyData(Stream, Byte[], HashAlgorithmName)

Sprawdza, czy podpis cyfrowy jest odpowiedni dla bieżącego klucza i dostarczył dane z określonym algorytmem skrótu.

VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName)

Sprawdza, czy podpis cyfrowy jest odpowiedni dla bieżącego klucza i dostarczył dane z określonym algorytmem skrótu.

VerifyData(Byte[], Byte[], HashAlgorithmName, DSASignatureFormat)

Sprawdza, czy podpis cyfrowy jest prawidłowy dla podanych danych.

VerifyData(Stream, Byte[], HashAlgorithmName, DSASignatureFormat)

Sprawdza, czy podpis cyfrowy jest prawidłowy dla podanych danych.

VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

Sprawdza, czy podpis cyfrowy jest prawidłowy dla podanych danych.

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

Sprawdza, czy podpis cyfrowy jest odpowiedni dla bieżącego klucza i dostarczył część danych z określonym algorytmem skrótu.

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

Sprawdza, czy podpis cyfrowy jest prawidłowy dla podanych danych.

VerifyData(Byte[], Byte[], HashAlgorithmName)

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

Sprawdza, czy podpis cyfrowy jest odpowiedni dla bieżącego klucza i dostarczył dane z określonym algorytmem skrótu.

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

Parametry

data
Byte[]

Podpisane dane.

signature
Byte[]

Dane podpisu do zweryfikowania.

hashAlgorithm
HashAlgorithmName

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

Zwraca

true jeśli podpis jest prawidłowy; w przeciwnym razie , false.

Wyjątki

data to null.

-lub-

signature to null.

hashAlgorithm.Name jest lub nullEmpty.

Dotyczy

VerifyData(Stream, Byte[], HashAlgorithmName)

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

Sprawdza, czy podpis cyfrowy jest odpowiedni dla bieżącego klucza i dostarczył dane z określonym algorytmem skrótu.

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

Parametry

data
Stream

Podpisane dane.

signature
Byte[]

Dane podpisu do zweryfikowania.

hashAlgorithm
HashAlgorithmName

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

Zwraca

true jeśli podpis jest prawidłowy; w przeciwnym razie , false.

Wyjątki

data to null.

-lub-

signature to null.

hashAlgorithm.Name jest lub nullEmpty.

Dotyczy

VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName)

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

Sprawdza, czy podpis cyfrowy jest odpowiedni dla bieżącego klucza i dostarczył dane z określonym algorytmem skrótu.

public:
 virtual bool VerifyData(ReadOnlySpan<System::Byte> data, ReadOnlySpan<System::Byte> signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm);
public virtual bool VerifyData (ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm);
abstract member VerifyData : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName -> bool
override this.VerifyData : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName -> bool
Public Overridable Function VerifyData (data As ReadOnlySpan(Of Byte), signature As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName) As Boolean

Parametry

data
ReadOnlySpan<Byte>

Podpisane dane.

signature
ReadOnlySpan<Byte>

Podpis do zweryfikowania.

hashAlgorithm
HashAlgorithmName

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

Zwraca

true jeśli podpis jest prawidłowy; w przeciwnym razie , false.

Wyjątki

hashAlgorithm.Name jest lub nullEmpty.

Dotyczy

VerifyData(Byte[], Byte[], HashAlgorithmName, DSASignatureFormat)

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

Sprawdza, czy podpis cyfrowy jest prawidłowy dla podanych danych.

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

Parametry

data
Byte[]

Podpisane dane.

signature
Byte[]

Podpis do zweryfikowania.

hashAlgorithm
HashAlgorithmName

Algorytm skrótu używany do określania skrótu danych dla procesu weryfikacji.

signatureFormat
DSASignatureFormat

Format kodowania dla .signature

Zwraca

true jeżeli podpis cyfrowy jest prawidłowy dla podanych danych; w przeciwnym razie , false.

Wyjątki

data lub signature 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 weryfikacji.

Dotyczy

VerifyData(Stream, Byte[], HashAlgorithmName, DSASignatureFormat)

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

Sprawdza, czy podpis cyfrowy jest prawidłowy dla podanych danych.

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

Parametry

data
Stream

Podpisane dane.

signature
Byte[]

Podpis do zweryfikowania.

hashAlgorithm
HashAlgorithmName

Algorytm skrótu używany do określania skrótu danych dla procesu weryfikacji.

signatureFormat
DSASignatureFormat

Format kodowania dla .signature

Zwraca

true jeżeli podpis cyfrowy jest prawidłowy dla podanych danych; w przeciwnym razie , false.

Wyjątki

data lub signature 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 weryfikacji.

Dotyczy

VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat)

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

Sprawdza, czy podpis cyfrowy jest prawidłowy dla podanych danych.

public:
 bool VerifyData(ReadOnlySpan<System::Byte> data, ReadOnlySpan<System::Byte> signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
public bool VerifyData (ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
member this.VerifyData : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> bool
Public Function VerifyData (data As ReadOnlySpan(Of Byte), signature As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Boolean

Parametry

data
ReadOnlySpan<Byte>

Podpisane dane.

signature
ReadOnlySpan<Byte>

Podpis do zweryfikowania.

hashAlgorithm
HashAlgorithmName

Algorytm skrótu używany do określania skrótu danych dla procesu weryfikacji.

signatureFormat
DSASignatureFormat

Format kodowania dla .signature

Zwraca

true jeżeli podpis cyfrowy jest prawidłowy dla podanych danych; w przeciwnym razie , false.

Wyjątki

signatureFormat nie jest znanym formatem.

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

Dotyczy

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

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

Sprawdza, czy podpis cyfrowy jest odpowiedni dla bieżącego klucza i dostarczył część danych z określonym algorytmem skrótu.

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

Parametry

data
Byte[]

Podpisane dane.

offset
Int32

Indeks początkowy, na którym ma być obliczany skrót.

count
Int32

Liczba bajtów do skrótu.

signature
Byte[]

Dane podpisu do zweryfikowania.

hashAlgorithm
HashAlgorithmName

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

Zwraca

true jeśli podpis jest prawidłowy; w przeciwnym razie , false.

Wyjątki

data to null.

-lub-

signature to null.

hashAlgorithm.Name jest lub nullEmpty.

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 wykracza poza górną granicę .data

Dotyczy

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

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

Sprawdza, czy podpis cyfrowy jest prawidłowy dla podanych danych.

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

Parametry

data
Byte[]

Tablica zawierająca podpisane dane.

offset
Int32

Początkowy indeks podpisanej części .data

count
Int32

Liczba bajtów w data podpisie.

signature
Byte[]

Podpis do zweryfikowania.

hashAlgorithm
HashAlgorithmName

Algorytm skrótu używany do tworzenia skrótów danych dla procesu weryfikacji.

signatureFormat
DSASignatureFormat

Format kodowania dla .signature

Zwraca

true jeżeli podpis cyfrowy jest prawidłowy dla podanych danych; w przeciwnym razie , false.

Wyjątki

data lub signature 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 wykracza poza górną granicę .data

hashAlgorithm ma wartość lub jest pusta nullName.

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

Dotyczy