EcDHInterface
in
This is the contract for implementing EcDH (EC Diffie Hellman).
Table of Contents
Methods
- calculateSharedKey() : GMP
- Calculates and returns the shared key for the exchange.
- createMultiPartyKey() : PublicKeyInterface
- setRecipientKey() : void
- Sets the recipient key.
- setSenderKey() : mixed
- Sets the sender's key.
Methods
calculateSharedKey()
Calculates and returns the shared key for the exchange.
public
calculateSharedKey() : GMP
Return values
GMPcreateMultiPartyKey()
public
createMultiPartyKey() : PublicKeyInterface
Return values
PublicKeyInterfacesetRecipientKey()
Sets the recipient key.
public
setRecipientKey(PublicKeyInterface $key) : void
Parameters
- $key : PublicKeyInterface
setSenderKey()
Sets the sender's key.
public
setSenderKey(PrivateKeyInterface $key) : mixed
Parameters
- $key : PrivateKeyInterface