  /*
   * Wrappers for public-key functions
   */
-@@ -745,7 +1086,7 @@ pgp_pub_encrypt_bytea(PG_FUNCTION_ARGS)
+@@ -745,7 +1105,7 @@ pgp_pub_encrypt_bytea(PG_FUNCTION_ARGS)
  	if (PG_NARGS() > 2)
  		arg = PG_GETARG_BYTEA_P(2);
  

 
 /*
  * Wrappers for PGP ascii armor
@@ -1015,7 +1474,7 @@ pgp_armor_header_w(PG_FUNCTION_ARGS)
 
 
 /*

 {
 	int			err;
 	MBuf	   *src = NULL,
@@ -568,25 +632,47 @@ decrypt_internal(int is_pubenc, int need_text, text *data,
 			psw_len = VARSIZE(keypsw) - VARHDRSZ;
 		}
 		kbuf = create_mbuf_from_vardata(key);
