Crypt/GPG.php
public function decryptAndVerifyFile($encryptedFile, $decryptedFile = null, $ignoreVerifyErrors = false)
    {
        return $this->_decryptAndVerify($encryptedFile, true, $decryptedFile, $ignoreVerifyErrors);
    }
public function decryptAndVerifyFile($encryptedFile, $decryptedFile = null, $ignoreVerifyErrors = false)
    {
        return $this->_decryptAndVerify($encryptedFile, true, $decryptedFile, $ignoreVerifyErrors);
    }
Decrypts and verifies a signed, encrypted file

This method assumes the required private key is available in the keyring
and throws an exception if the private key is not available. To add a
private key to the keyring, use the {@link Crypt_GPG::importKey()} or
{@link Crypt_GPG::importKeyFile()} methods.

@param string  $encryptedFile      the name of the signed, encrypted file to
to decrypt and verify.
@param string  $decryptedFile      optional. The name of the file to which the
decrypted data should be written. If null
or unspecified, the decrypted data is
returned in the results array.
@param boolean $ignoreVerifyErrors enables ignoring of signature
verification errors caused by missing public key
When enabled Crypt_GPG_KeyNotFoundException
will not be thrown.

@return array two element array. The array has an element 'data'
containing the decrypted data and an element
'signatures' containing an array of
{@link Crypt_GPG_Signature} objects for the signed data.
If the decrypted data is written to a file, the 'data'
element is null.

@throws Crypt_GPG_KeyNotFoundException if the private key needed to
decrypt the data or the public key to verify the signature
is not in the user's keyring.

@throws Crypt_GPG_NoDataException if specified data does not contain
GPG encrypted data.

@throws Crypt_GPG_BadPassphraseException if a required passphrase is
incorrect or if a required passphrase is not specified. See
{@link Crypt_GPG::addDecryptKey()}.

@throws Crypt_GPG_FileException if the output file is not writeable or
if the input file is not readable.

@throws Crypt_GPG_Exception if an unknown or unexpected error occurs.
Use the <kbd>debug</kbd> option and file a bug report if these
exceptions occur.