PHP Class ParagonIE\Halite\EncryptionKeyPair

Inheritance: extends KeyPair
Datei anzeigen Open project: paragonie/halite

Protected Properties

Property Type Description
$publicKey EncryptionPublicKey
$secretKey EncryptionSecretKey

Public Methods

Method Description
__construct ( variadic $keys ) Pass it a secret key, it will automatically generate a public key
getPublicKey ( ) : EncryptionPublicKey Get a Key object for the public key
getSecretKey ( ) : EncryptionSecretKey Get a Key object for the public key

Protected Methods

Method Description
setupKeyPair ( EncryptionSecretKey $secret ) Set up our key pair

Method Details

__construct() public method

Pass it a secret key, it will automatically generate a public key
public __construct ( variadic $keys )
$keys variadic

getPublicKey() public method

Get a Key object for the public key
public getPublicKey ( ) : EncryptionPublicKey
return EncryptionPublicKey

getSecretKey() public method

Get a Key object for the public key
public getSecretKey ( ) : EncryptionSecretKey
return EncryptionSecretKey

setupKeyPair() protected method

Set up our key pair
protected setupKeyPair ( EncryptionSecretKey $secret )
$secret EncryptionSecretKey

Property Details

$publicKey protected_oe property

protected EncryptionPublicKey $publicKey
return EncryptionPublicKey

$secretKey protected_oe property

protected EncryptionSecretKey $secretKey
return EncryptionSecretKey