--- a/Horde_Crypt-2.7.12/lib/Horde/Crypt/Pgp.php
+++ b/Horde_Crypt-2.7.12/lib/Horde/Crypt/Pgp.php
@@ -68,7 +68,7 @@
      * @throws Horde_Crypt_Exception
      */
     public function generateKey($realname, $email, $passphrase, $comment = '',
-                                $keylength = 1024, $expire = null,
+                                $keylength = 4096, $expire = null,
                                 $key_type = 'RSA', $subkey_type = 'RSA')
     {
         $this->_initDrivers();
--- a/Horde_Crypt-2.7.12/test/Horde/Crypt/Pgp/TestBase.php
+++ b/Horde_Crypt-2.7.12/test/Horde/Crypt/Pgp/TestBase.php
@@ -490,14 +490,14 @@
         $this->assertEquals('Key Comment', $info['signature']['id1']['comment']);
         $this->assertLessThan($expire + 30, $info['signature']['id1']['sig_' . $info['signature']['id1']['keyid']]['expires']);
         $this->assertGreaterThan($expire - 30, $info['signature']['id1']['sig_' . $info['signature']['id1']['keyid']]['expires']);
-        $this->assertEquals(1024, $info['secret_key']['size']);
+        $this->assertEquals(4096, $info['secret_key']['size']);
         $info = $pgp->pgpPacketInformation($keys['public']);
         $this->assertEquals('John Doe', $info['signature']['id1']['name']);
         $this->assertEquals('john@example.com', $info['signature']['id1']['email']);
         $this->assertEquals('Key Comment', $info['signature']['id1']['comment']);
         $this->assertLessThan($expire + 30, $info['signature']['id1']['sig_' . $info['signature']['id1']['keyid']]['expires']);
         $this->assertGreaterThan($expire - 30, $info['signature']['id1']['sig_' . $info['signature']['id1']['keyid']]['expires']);
-        $this->assertEquals(1024, $info['public_key']['size']);
+        $this->assertEquals(4096, $info['public_key']['size']);
     }
 
     /**
