ECKey.CurveNameToID
-------------------

Queries the name for the curve ID.

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

MBS( "ECKey.CurveNameToID"; Name ) 

**MBS**( **"ECKey.CurveNameToID";** /\* Queries the name for the curve ID. \*/  
**$Name**) /\* The name of the curve.  
Can be curve name or nist name.e.g. "secp112r1" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Name | The name of the curve.   Can be curve name or nist name. | "secp112r1" |

### Result

Returns OK or error.

### Description

Queries the name for the curve ID.  
### Examples

Query curve id for name:

 MBS ( "ECKey.CurveNameToID"; "secp112r1" )  
<small>  
Example result: 704</small>Query curve for nist name:

 MBS ( "ECKey.CurveNameToID"; "P-256" )  
<small>  
Example result: 415</small>### See also

- [ECKey.ES256Sign](ECKeyES256Sign.md)

### Release notes

- **Version 15.1**
    - Added [ECKey.CurveNameToID](https://www.mbsplugins.eu/ECKeyCurveNameToID.shtml) function.

### 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 is free to use.

Created 3th February 2025 , last changed 3th February 2025

  
[ECKey.CanSign](ECKeyCanSign.md) - [ECKey.Description](ECKeyDescription.md)

[HTML Version](ECKeyCurveNameToID.shtml)