public function decryptPrivateKey($privateKey, $privateKeyPassword)
    {
        try {
            return CryptoVirgilKeyPair::decryptPrivateKey($privateKey, $privateKeyPassword);
        } catch (Exception $exception) {
            throw new PrivateKeyDecryptionException($exception->getMessage(), $exception->getCode());
        }
    }
public function decryptPrivateKey($privateKey, $privateKeyPassword)
    {
        try {
            return CryptoVirgilKeyPair::decryptPrivateKey($privateKey, $privateKeyPassword);
        } catch (Exception $exception) {
            throw new PrivateKeyDecryptionException($exception->getMessage(), $exception->getCode());
        }
    }
public function decryptPrivateKey ( $ privateKey , $ privateKeyPassword ) { try { return CryptoVirgilKeyPair :: decryptPrivateKey ( $ privateKey , $ privateKeyPassword ) ; } catch ( Exception $ exception ) { throw new PrivateKeyDecryptionException ( $ exception -> getMessage ( ) , $ exception -> getCode ( ) ) ; } }
Decrypts private key with a password.

@param string $privateKey
@param string $privateKeyPassword

@return string

@throws PrivateKeyDecryptionException
Decrypts private key with a password .