Verifies a digital signature against the specified Elliptic Curve Digital Signature Algorithm (ECDSA) public key.
In the diagram below, the dark rectangle represents the activity of verifying a signature against some data using a public key that is retrieved from the server which signed the data.
Also see: CreateECDSAKeys, GenerateECDSASignature.
The public ECDSA key against which to verify the signature (see CreateECDSAKeys).
The key can be given as a list of bytes or a base64 string.
The hash algorithm that was used to sign the data.
The data against which to verify the signature. This can be a list of bytes or a base64 string.
The signed data to verify (see GenerateECDSASignature). This can be a list of bytes or a base64 string.
- A boolean value (true / false) indicating if the specified signature is valid given the public key and data.
The example below shows a simple process that retrieves a public key from a server and uses it to verify a specified signature against the specified data.