PrivateKey
in package
implements
PrivateKeyInterface
This class serves as public - private key exchange for signature verification.
Table of Contents
Interfaces
- PrivateKeyInterface
- This is a contract for the PrivateKey portion of ECDSA.
Properties
Methods
- __construct() : mixed
- createExchange() : EcDHInterface
- getCurve() : CurveFpInterface
- {@inheritDoc}
- getPoint() : GeneratorPoint
- getPublicKey() : PublicKeyInterface
- getSecret() : GMP
Properties
$adapter
private
GmpMathInterface
$adapter
$generator
private
GeneratorPoint
$generator
$secretMultiplier
private
GMP
$secretMultiplier
Methods
__construct()
public
__construct(GmpMathInterface $adapter, GeneratorPoint $generator, GMP $secretMultiplier) : mixed
Parameters
- $adapter : GmpMathInterface
- $generator : GeneratorPoint
- $secretMultiplier : GMP
createExchange()
public
createExchange([PublicKeyInterface $recipient = null ]) : EcDHInterface
Parameters
- $recipient : PublicKeyInterface = null
Tags
Return values
EcDHInterfacegetCurve()
{@inheritDoc}
public
getCurve() : CurveFpInterface
Tags
Return values
CurveFpInterfacegetPoint()
public
getPoint() : GeneratorPoint
Tags
Return values
GeneratorPointgetPublicKey()
public
getPublicKey() : PublicKeyInterface
Tags
Return values
PublicKeyInterfacegetSecret()
public
getSecret() : GMP