private function initialize()
    {
        // generate key pair.
        $this->privateKey = $this->generator->createPrivateKey();
        $this->publicKey = $this->privateKey->getPublicKey();

        // generate salt
        $this->salt = openssl_random_pseudo_bytes(16);

        $this->publicKeyContent = hex2bin($this->serializer->serialize($this->publicKey->getPoint()));
    }
private function initialize()
    {
        // generate key pair.
        $this->privateKey = $this->generator->createPrivateKey();
        $this->publicKey = $this->privateKey->getPublicKey();

        // generate salt
        $this->salt = openssl_random_pseudo_bytes(16);

        $this->publicKeyContent = hex2bin($this->serializer->serialize($this->publicKey->getPoint()));
    }
private function initialize ( ) { // generate key pair. $ this -> privateKey = $ this -> generator -> createPrivateKey ( ) ; $ this -> publicKey = $ this -> privateKey -> getPublicKey ( ) ; // generate salt $ this -> salt = openssl_random_pseudo_bytes ( 16 ) ; $ this -> publicKeyContent = hex2bin ( $ this -> serializer -> serialize ( $ this -> publicKey -> getPoint ( ) ) ) ; }
Generate key pare and salt.
Generate key pare and salt .