Share via


Key_RSA.VerifySignature Method

Verifies the specified signature data by comparing it with the signature computed for the specified signed data.

Namespace: Microsoft.SPOT.Cryptography
Assembly: Microsoft.SPOT.Native (in microsoft.spot.native.dll)

Syntax

[MethodImplAttribute]
public bool VerifySignature (
         byte[] data,
         intdataOffset,
         intdataCount,
         byte[] sig,
         intsigOffset,
         intsigCount
)

Parameters

  • data
    The signed data you want to compare the specified signature with.
  • dataOffset
    The offset into the specified data array, locating the start of the data to be verified.
  • dataCount
    The length of the data to be compared, in bytes.
  • sig
    The signature data to be verified.
  • sigOffset
    The offset into the signature data array, locating the start of the signature.
  • sigCount
    The length of the specified signature, in bytes.

Return Value

true if the signature was verified as valid; otherwise, false.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

Key_RSA Class
Key_RSA Members
Microsoft.SPOT.Cryptography Namespace