ECKey.ES256Verify
-----------------

Verifies the digital signature with ES256.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Sign](component_Sign.md) | [15.1](newinversion151.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "ECKey.ES256Verify"; ECKey; Data; DataEncoding; SignatureData { ; SignatureDataEncoding } ) 

**MBS**( **"ECKey.ES256Verify";** /\* Verifies the digital signature with ES256. \*/  
**$ECKey**; /\* The reference number for the key.e.g. $Key \*/   
**$Data**; /\* The data.e.g. "Hello World" \*/   
**$DataEncoding**; /\* The text encoding for data parameter.   
Default is UTF-8.  
Pass base64 if the data is base64 encoded or pass hex if it is hex encoded.e.g. "UTF8" \*/   
**$SignatureData**; /\* The hex encoded signature.e.g. $sig \*/   
**$SignatureDataEncoding**) /\* Optional; The text encoding for signature parameter.   
Default is Base64. \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| ECKey | The reference number for the key. | $Key |  |
| Data | The data. | "Hello World" |  |
| DataEncoding | The text encoding for data parameter.    Default is UTF-8.   Pass base64 if the data is base64 encoded or pass hex if it is hex encoded. | "UTF8" |  |
| SignatureData | The hex encoded signature. | $sig |  |
| SignatureDataEncoding | The text encoding for signature parameter.    Default is Base64. |  | Optional |

### Result

Returns OK or error.

### Description

Verifies the digital signature with ES256.  
We perform a hash with SHA256 of the data and verify the result.  
### See also

- [ECKey.ES256Sign](ECKeyES256Sign.md)

### Release notes

- **Version 15.1**
    - Added [ECKey.ES256Sign](https://www.mbsplugins.eu/ECKeyES256Sign.shtml) and [ECKey.ES256Verify](https://www.mbsplugins.eu/ECKeyES256Verify.shtml).

### Blog Entries

- [MBS FileMaker Plugin 15.1 News](https://www.mbsplugins.de/archive/2025-03-19/MBS_FileMaker_Plugin_151_News/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.1pr2](https://www.mbsplugins.de/archive/2025-02-06/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 3th February 2025 , last changed 11st April 2025

  
[ECKey.ES256Sign](ECKeyES256Sign.md) - [ECKey.Generate](ECKeyGenerate.md)

[HTML Version](ECKeyES256Verify.shtml)