roundcubemail/plugins/enigma/lib/enigma_engine.php
private function pgp_decrypt(&$msg_body, &$signature = null)
    {
        // @TODO: Handle big bodies using (temp) files
        $keys   = $this->get_passwords();
        $result = $this->pgp_driver->decrypt($msg_body, $keys, $signature);

        if ($result instanceof enigma_error) {
            if ($result->getCode() != enigma_error::KEYNOTFOUND) {
                self::raise_error($result, __LINE__);
            }

            return $result;
        }

        $msg_body = $result;

        return true;
    }
private function pgp_decrypt(&$msg_body, &$signature = null)
    {
        // @TODO: Handle big bodies using (temp) files
        $keys   = $this->get_passwords();
        $result = $this->pgp_driver->decrypt($msg_body, $keys, $signature);

        if ($result instanceof enigma_error) {
            if ($result->getCode() != enigma_error::KEYNOTFOUND) {
                self::raise_error($result, __LINE__);
            }

            return $result;
        }

        $msg_body = $result;

        return true;
    }
private function pgp_decrypt ( & $ msg_body , & $ signature = null ) { // @TODO: Handle big bodies using (temp) files $ keys = $ this -> get_passwords ( ) ; $ result = $ this -> pgp_driver -> decrypt ( $ msg_body , $ keys , $ signature ) ; if ( $ result instanceof enigma_error ) { if ( $ result -> getCode ( ) != enigma_error :: KEYNOTFOUND ) { self :: raise_error ( $ result , __LINE__ ) ; } return $ result ; } $ msg_body = $ result ; return true ; }
PGP message decryption.

@param mixed            &$msg_body  Message body
@param enigma_signature &$signature Signature verification result

@return mixed True or enigma_error
PGP message decryption .