RSA.VerifyData Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Ověřuje platnost digitálního podpisu.
Přetížení
| Název | Description |
|---|---|
| VerifyData(Byte[], Byte[], HashAlgorithmName, RSASignaturePadding) |
Ověří platnost digitálního podpisu pomocí výpočtu hodnoty hash zadaných dat pomocí zadaného algoritmu hash a odsazení a porovnáním se zadaným podpisem. |
| VerifyData(Stream, Byte[], HashAlgorithmName, RSASignaturePadding) |
Ověří, že digitální podpis je platný, a to tak, že vypočítá hodnotu hash zadaného datového proudu pomocí zadaného algoritmu hash a odsazení a porovná ho s poskytnutým podpisem. |
| VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, RSASignaturePadding) |
Ověří platnost digitálního podpisu pomocí výpočtu hodnoty hash zadaných dat pomocí zadaného algoritmu hash a odsazení a porovnáním se zadaným podpisem. |
| VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName, RSASignaturePadding) |
Ověří, že digitální podpis je platný, a to tak, že vypočítá hodnotu hash dat v části pole bajtů pomocí zadaného algoritmu hash a odsazení a porovná ho s poskytnutým podpisem. |
VerifyData(Byte[], Byte[], HashAlgorithmName, RSASignaturePadding)
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
Ověří platnost digitálního podpisu pomocí výpočtu hodnoty hash zadaných dat pomocí zadaného algoritmu hash a odsazení a porovnáním se zadaným 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[]
Podepsaná data.
- signature
- Byte[]
Data podpisu, která se mají ověřit.
- hashAlgorithm
- HashAlgorithmName
Algoritmus hash použitý k vytvoření hodnoty hash dat.
- padding
- RSASignaturePadding
Režim odsazení.
Návraty
trueje-li podpis platný; v opačném případě . false
Výjimky
padding je neznámá nebo není podporována touto implementací.
Platí pro
VerifyData(Stream, Byte[], HashAlgorithmName, RSASignaturePadding)
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
Ověří, že digitální podpis je platný, a to tak, že vypočítá hodnotu hash zadaného datového proudu pomocí zadaného algoritmu hash a odsazení a porovná ho s poskytnutým 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
Podepsaná data.
- signature
- Byte[]
Data podpisu, která se mají ověřit.
- hashAlgorithm
- HashAlgorithmName
Algoritmus hash použitý k vytvoření hodnoty hash dat.
- padding
- RSASignaturePadding
Režim odsazení.
Návraty
trueje-li podpis platný; v opačném případě . false
Výjimky
padding je neznámá nebo není podporována touto implementací.
Platí pro
VerifyData(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, RSASignaturePadding)
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
Ověří platnost digitálního podpisu pomocí výpočtu hodnoty hash zadaných dat pomocí zadaného algoritmu hash a odsazení a porovnáním se zadaným 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>
Podepsaná data.
- signature
- ReadOnlySpan<Byte>
Data podpisu, která se mají ověřit.
- hashAlgorithm
- HashAlgorithmName
Algoritmus hash použitý k vytvoření hodnoty hash dat.
- padding
- RSASignaturePadding
Režim odsazení.
Návraty
trueje-li podpis platný; v opačném případě . false
Výjimky
padding je neznámá nebo není podporována touto implementací.
Platí pro
VerifyData(Byte[], Int32, Int32, Byte[], HashAlgorithmName, RSASignaturePadding)
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
- Zdroj:
- RSA.cs
Ověří, že digitální podpis je platný, a to tak, že vypočítá hodnotu hash dat v části pole bajtů pomocí zadaného algoritmu hash a odsazení a porovná ho s poskytnutým 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[]
Podepsaná data.
- offset
- Int32
Počáteční index, na kterém se má vypočítat hodnota hash.
- count
- Int32
Počet bajtů k hodnotě hash.
- signature
- Byte[]
Data podpisu, která se mají ověřit.
- hashAlgorithm
- HashAlgorithmName
Algoritmus hash použitý k vytvoření hodnoty hash dat.
- padding
- RSASignaturePadding
Režim odsazení.
Návraty
trueje-li podpis platný; v opačném případě . false
Výjimky
Hodnota offset je menší než nula.
nebo
Hodnota count je menší než nula.
nebo
offset
+
count - 1 má za následek index, který je nad horní mez data.
padding je neznámá nebo není podporována touto implementací.