RSA.VerifyData Metoda

Definicja

Sprawdza, czy podpis cyfrowy jest prawidłowy.

Przeciążenia

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

Sprawdza, czy podpis cyfrowy jest prawidłowy, obliczając wartość skrótu określonych danych przy użyciu określonego algorytmu wyznaczania wartości skrótu i wypełniania oraz porównując ją z podanym podpisem.

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

Sprawdza, czy podpis cyfrowy jest prawidłowy, obliczając wartość skrótu określonego strumienia przy użyciu określonego algorytmu wyznaczania wartości skrótu i wypełniania oraz porównując ją z podanym podpisem.

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

Sprawdza, czy podpis cyfrowy jest prawidłowy, obliczając wartość skrótu określonych danych przy użyciu określonego algorytmu wyznaczania wartości skrótu i wypełniania oraz porównując ją z podanym podpisem.

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

Sprawdza, czy podpis cyfrowy jest prawidłowy, obliczając wartość skrótu danych w części tablicy bajtów przy użyciu określonego algorytmu wyznaczania wartości skrótu i dopełniania oraz porównując ją z podanym podpisem.

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

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

Sprawdza, czy podpis cyfrowy jest prawidłowy, obliczając wartość skrótu określonych danych przy użyciu określonego algorytmu wyznaczania wartości skrótu i wypełniania oraz porównując ją z podanym podpisem.

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

padding
RSASignaturePadding

Tryb dopełniania.

Zwraca

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

Wyjątki

data to null.

-lub-

signature to null.

-lub-

padding to null.

hashAlgorithm.Name jest lub nullEmpty.

padding jest nieznany lub nie jest obsługiwany przez tę implementację.

Dotyczy

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

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

Sprawdza, czy podpis cyfrowy jest prawidłowy, obliczając wartość skrótu określonego strumienia przy użyciu określonego algorytmu wyznaczania wartości skrótu i wypełniania oraz porównując ją z podanym podpisem.

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

padding
RSASignaturePadding

Tryb dopełniania.

Zwraca

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

Wyjątki

data to null.

-lub-

signature to null.

-lub-

padding to null.

hashAlgorithm.Name jest lub nullEmpty.

padding jest nieznany lub nie jest obsługiwany przez tę implementację.

Dotyczy

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

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

Sprawdza, czy podpis cyfrowy jest prawidłowy, obliczając wartość skrótu określonych danych przy użyciu określonego algorytmu wyznaczania wartości skrótu i wypełniania oraz porównując ją z podanym podpisem.

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

Parametry

data
ReadOnlySpan<Byte>

Podpisane dane.

signature
ReadOnlySpan<Byte>

Dane podpisu do zweryfikowania.

hashAlgorithm
HashAlgorithmName

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

padding
RSASignaturePadding

Tryb dopełniania.

Zwraca

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

Wyjątki

hashAlgorithm.Name jest lub nullEmpty.

padding jest nieznany lub nie jest obsługiwany przez tę implementację.

Dotyczy

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

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

Sprawdza, czy podpis cyfrowy jest prawidłowy, obliczając wartość skrótu danych w części tablicy bajtów przy użyciu określonego algorytmu wyznaczania wartości skrótu i dopełniania oraz porównując ją z podanym podpisem.

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

padding
RSASignaturePadding

Tryb dopełniania.

Zwraca

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

Wyjątki

data to null.

-lub-

signature to null.

-lub-

padding 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

padding jest nieznany lub nie jest obsługiwany przez tę implementację.

Dotyczy