abstract class MontgomeryPublic (View source)

Montgomery Public Key Handler

Constants

IS_INVISIBLE

Is invisible flag

Methods

static array
load(string $key, string $password = '')

Break a public or private key down into its constituent components

static string
savePublicKey(Montgomery $curve, array $publicKey)

Convert an EC public key to the appropriate format

Details

static array load(string $key, string $password = '')

Break a public or private key down into its constituent components

Parameters

string $key
string $password optional

Return Value

array

static string savePublicKey(Montgomery $curve, array $publicKey)

Convert an EC public key to the appropriate format

Parameters

Montgomery $curve
array $publicKey

Return Value

string