roundcubemail/plugins/enigma/lib/enigma_engine.php
function generate_key($data)
    {
        $this->load_pgp_driver();
        $result = $this->pgp_driver->gen_key($data);

        if ($result instanceof enigma_error) {
            self::raise_error($result, __LINE__);
        }

        return $result;
    }
function generate_key($data)
    {
        $this->load_pgp_driver();
        $result = $this->pgp_driver->gen_key($data);

        if ($result instanceof enigma_error) {
            self::raise_error($result, __LINE__);
        }

        return $result;
    }
function generate_key ( $ data ) { $ this -> load_pgp_driver ( ) ; $ result = $ this -> pgp_driver -> gen_key ( $ data ) ; if ( $ result instanceof enigma_error ) { self :: raise_error ( $ result , __LINE__ ) ; } return $ result ; }
PGP keys pair generation.

@param array Key pair parameters

@return mixed enigma_key or enigma_error
PGP keys pair generation .