Interface ICrypto3
interface ICrypto3
Extends ICrypto2
ICrypto3 adds support for Edwards curve cryptography, AES-192, and Message Authentication Codes.
Methods
getSupportedEdwardsCurves()
List supported Edwards curves.IEdwardsCurve*[]getSupportedEdwardsCurves()
Returns
IEdwardsCurve*[]
An array of supported Edwards curves.
getEdwardsCurveByName()
Get an Edwards curve by name.IEdwardsCurve*getEdwardsCurveByName(stringname)
Parameters
name
string — Required
The name of the Edwards curve (Ed25519, Ed448).
Returns
IEdwardsCurve*
The requested Edwards curve.
Throws
NotSupportedError— if the curve is not supported.
makeEdwardsKeyBuilder()
Make an object for building Edwards curve keys.IEdwardsKeyBuilder*makeEdwardsKeyBuilder()
Returns
IEdwardsKeyBuilder*
The Edwards key builder object.
makeHmacKeyBuilder()
Make an object for building HMAC keys.IHmacKeyBuilder*makeHmacKeyBuilder()
Returns
IHmacKeyBuilder*
The HMAC key builder object.
getSupportedMessageAuthenticationCodes()
List supported Message Authentication Code algorithms.IMessageAuthenticationCode*[]getSupportedMessageAuthenticationCodes()
Returns
IMessageAuthenticationCode*[]
An array of supported MAC algorithms.
getMessageAuthenticationCodeByName()
Get a Message Authentication Code algorithm by name.IMessageAuthenticationCode*getMessageAuthenticationCodeByName(stringname)
Parameters
name
string — Required
The name of the MAC algorithm (HmacSha256, HmacSha384, HmacSha512).
Returns
IMessageAuthenticationCode*
The requested MAC algorithm.
Throws
NotSupportedError— if the specified MAC algorithm is not supported.

