DSA.VerifyDataCore Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
VerifyDataCore(Stream, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat) |
Verifies that a digital signature is valid for the provided data. |
VerifyDataCore(ReadOnlySpan<Byte>, ReadOnlySpan<Byte>, HashAlgorithmName, DSASignatureFormat) |
Verifies that a digital signature is valid for the provided data. |
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
Verifies that a digital signature is valid for the provided data.
protected:
virtual bool VerifyDataCore(System::IO::Stream ^ data, ReadOnlySpan<System::Byte> signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
protected virtual bool VerifyDataCore(System.IO.Stream data, ReadOnlySpan<byte> signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
abstract member VerifyDataCore : System.IO.Stream * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> bool
override this.VerifyDataCore : System.IO.Stream * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> bool
Protected Overridable Function VerifyDataCore (data As Stream, signature As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Boolean
Parameters
- data
- Stream
The signed data.
- signature
- ReadOnlySpan<Byte>
The signature to verify.
- hashAlgorithm
- HashAlgorithmName
The hash algorithm used to hash the data for the verification process.
- signatureFormat
- DSASignatureFormat
The encoding format for signature
.
Returns
true
if the digital signature is valid for the provided data; otherwise, false
.
Exceptions
An error occurred in the hashing or verification operation.
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.NET | 5, 6, 7, 8, 9, 10 |
- Source:
- DSA.cs
- Source:
- DSA.cs
- Source:
- DSA.cs
Verifies that a digital signature is valid for the provided data.
protected:
virtual bool VerifyDataCore(ReadOnlySpan<System::Byte> data, ReadOnlySpan<System::Byte> signature, System::Security::Cryptography::HashAlgorithmName hashAlgorithm, System::Security::Cryptography::DSASignatureFormat signatureFormat);
protected virtual bool VerifyDataCore(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, System.Security.Cryptography.HashAlgorithmName hashAlgorithm, System.Security.Cryptography.DSASignatureFormat signatureFormat);
abstract member VerifyDataCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> bool
override this.VerifyDataCore : ReadOnlySpan<byte> * ReadOnlySpan<byte> * System.Security.Cryptography.HashAlgorithmName * System.Security.Cryptography.DSASignatureFormat -> bool
Protected Overridable Function VerifyDataCore (data As ReadOnlySpan(Of Byte), signature As ReadOnlySpan(Of Byte), hashAlgorithm As HashAlgorithmName, signatureFormat As DSASignatureFormat) As Boolean
Parameters
- data
- ReadOnlySpan<Byte>
The signed data.
- signature
- ReadOnlySpan<Byte>
The signature to verify.
- hashAlgorithm
- HashAlgorithmName
The hash algorithm used to hash the data for the verification process.
- signatureFormat
- DSASignatureFormat
The encoding format for signature
.
Returns
true
if the digital signature is valid for the provided data; otherwise, false
.
Exceptions
An error occurred in the hashing or verification operation.
Applies to
.NET 10 and other versions
Product | Versions |
---|---|
.NET | 5, 6, 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: