PublicKeyExtensionsVerifySignature Method

Verifies signature using public key.

Definition

Namespace: SysadminsLV.PKI.Cryptography
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public static bool VerifySignature(
	this PublicKey pubKey,
	SignedContentBlob signedBlob
)

Parameters

pubKey  PublicKey
Public key to use in verification.
signedBlob  SignedContentBlob
Signed blob that contains signed data, signature and algorithm identifier.

Return Value

Boolean
True if signature matches public key, otherwise False.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PublicKey. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also