the key length parameter was not passed to generateKey method patch here : http://kaalh.smol.org/horde/PGP.php.diff -- KaalH!