Platforms to show: All Mac Windows Linux Cross-Platform

ECKeyMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Encryption and Hash MBS Encryption Plugin 15.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
The class for Elliptic Curve Digital Signature Algorithm.
Example
const NID_secp192k1 = 711
Var key as ECKeyMBS = ECKeyMBS.KeyByCurveName(NID_secp192k1)

MsgBox key.Description
  • 5 properties
  • 19 methods
    • method Constructor
    • method Copy as ECKeyMBS
    • method ES256Sign(Data as MemoryBlock) as String   New in 25.1
    • method ES256Sign(Data as String) as String   New in 25.1
    • method ES256Verify(SignatureData as MemoryBlock, Data as MemoryBlock) as Boolean   New in 25.1
    • method ES256Verify(SignatureData as String, Data as String) as Boolean   New in 25.1
    • method Generate as Boolean
    • method GetPrivateKey(Hex as Boolean) as String
    • method GetPublicKey(byref x as String, byref y as String, Hex as Boolean) as Boolean
    • method GetPublicKeyPoint as String
    • method PrivateKey as String
    • method PublicKey as String
    • method SetPrivateKey(Value as String, Hex as Boolean) as Boolean
    • method SetPublicKey(x as String, y as String, Hex as Boolean) as Boolean
    • method SetPublicKeyPoint(Value as String) as Boolean
    • method Sign(Data as MemoryBlock) as String   New in 25.1
    • method Sign(Data as String) as String
    • method Verify(SignatureData as MemoryBlock, Data as MemoryBlock) as Boolean   New in 25.1
    • method Verify(SignatureData as String, Data as String) as Boolean
  • 5 shared methods
    • shared method BuiltInCurves(Names as Boolean = false) as Dictionary
    • shared method CurveNameToID(Name as String) as Integer   New in 25.1
    • shared method KeyByCurveName(CurveID as Integer, Generate as Boolean = true) as ECKeyMBS
    • shared method OpenPrivateKey(Data as String) as ECKeyMBS
    • shared method OpenPublicKey(Data as String, CurveID as Integer) as ECKeyMBS

This class has no sub classes.

Blog Entries

Release notes

  • Version 25.1
    • Added CurveNameToID function to ECKeyMBS class.
    • Added ES256Verify and ES256Sign functions to ECKeyMBS class.
    • Added optional Names parameter to BuiltInCurves function in ECKeyMBS class.
  • Version 20.2
    • Added Generate parameter for KeyByCurveName method in ECKeyMBS class.
    • Added Generate, GetPublicKeyPoint, SetPublicKeyPoint, SetPublicKey, GetPublicKey, SetPrivateKey and GetPrivateKey methods to ECKeyMBS class.
    • Added Valid and CanSign properties to ECKeyMBS class.

Some examples using this class:


The items on this page are in the following plugins: MBS Encryption Plugin.


ECDHEMBS   -   EdsBaseMBS


The biggest plugin in space...