roundcubemail/plugins/enigma/lib/enigma_engine.php
private function pgp_verify(&$msg_body, $sig_body = null)
    {
        // @TODO: Handle big bodies using (temp) files
        $sig = $this->pgp_driver->verify($msg_body, $sig_body);

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

        return $sig;
    }
private function pgp_verify(&$msg_body, $sig_body = null)
    {
        // @TODO: Handle big bodies using (temp) files
        $sig = $this->pgp_driver->verify($msg_body, $sig_body);

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

        return $sig;
    }
private function pgp_verify ( & $ msg_body , $ sig_body = null ) { // @TODO: Handle big bodies using (temp) files $ sig = $ this -> pgp_driver -> verify ( $ msg_body , $ sig_body ) ; if ( ( $ sig instanceof enigma_error ) && $ sig -> getCode ( ) != enigma_error :: KEYNOTFOUND ) { self :: raise_error ( $ sig , __LINE__ ) ; } return $ sig ; }
PGP signature verification.

@param mixed Message body
@param mixed Signature body (for MIME messages)

@return mixed enigma_signature or enigma_error
PGP signature verification .