MontgomeryPrivate
in package
AbstractYes
Montgomery Curve Private Key Handler
Tags
Table of Contents
Constants
- IS_INVISIBLE = true
- Is invisible flag
Methods
- load() : array<string|int, mixed>
- Break a public or private key down into its constituent components
- savePrivateKey() : string
- Convert a private key to the appropriate format.
- savePublicKey() : string
- Convert an EC public key to the appropriate format
Constants
IS_INVISIBLE
Is invisible flag
public
mixed
IS_INVISIBLE
= true
Tags
Methods
load()
Break a public or private key down into its constituent components
public
static load(string $key[, string $password = '' ]) : array<string|int, mixed>
Parameters
- $key : string
- $password : string = ''
-
optional
Tags
Return values
array<string|int, mixed>savePrivateKey()
Convert a private key to the appropriate format.
public
static savePrivateKey(Integer $privateKey, Montgomery $curve, array<string|int, Integer> $publicKey[, string $password = '' ]) : string
Parameters
- $privateKey : Integer
- $curve : Montgomery
- $publicKey : array<string|int, Integer>
- $password : string = ''
-
optional
Tags
Return values
stringsavePublicKey()
Convert an EC public key to the appropriate format
public
static savePublicKey(Montgomery $curve, array<string|int, Integer> $publicKey) : string
Parameters
- $curve : Montgomery
- $publicKey : array<string|int, Integer>