Neos\Flow\Security\Cryptography\RsaWalletServicePhp::decryptWithPrivateKey PHP Method

decryptWithPrivateKey() private method

Decrypts the given ciphertext with the given private key
private decryptWithPrivateKey ( string $cipher, OpenSslRsaKey $privateKey ) : string
$cipher string The ciphertext to decrypt
$privateKey OpenSslRsaKey The private key
return string The decrypted plaintext
    private function decryptWithPrivateKey($cipher, OpenSslRsaKey $privateKey)
    {
        $decrypted = '';
        $key = openssl_pkey_get_private($privateKey->getKeyString());
        openssl_private_decrypt($cipher, $decrypted, $key);
        return $decrypted;
    }