summaryrefslogtreecommitdiffstats
path: root/sm/encrypt.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2002-02-07 19:43:22 +0100
committerWerner Koch <wk@gnupg.org>2002-02-07 19:43:22 +0100
commit2a28f5d0aece3300dea950b6f9bed9dbc1f01fa7 (patch)
tree5ca0c73c6b9289476447ed726b0bd8b1ec6b355c /sm/encrypt.c
parent* decrypt.c (gpgsm_decrypt): Bail out after an decryption error. (diff)
downloadgnupg2-2a28f5d0aece3300dea950b6f9bed9dbc1f01fa7.tar.xz
gnupg2-2a28f5d0aece3300dea950b6f9bed9dbc1f01fa7.zip
* certlist.c (gpgsm_add_to_certlist): Check that the specified
name identifies a certificate unambiguously. (gpgsm_find_cert): Ditto. * server.c (cmd_listkeys): Check that the data stream is available. (cmd_listsecretkeys): Ditto. (has_option): New. (cmd_sign): Fix ambiguousity in option recognition. * gpgsm.c (main): Enable --logger-fd. * encrypt.c (gpgsm_encrypt): Increased buffer size for better performance. * call-agent.c (gpgsm_agent_pksign): Check the S-Exp received from the agent. * keylist.c (list_cert_colon): Filter out control characters.
Diffstat (limited to 'sm/encrypt.c')
-rw-r--r--sm/encrypt.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sm/encrypt.c b/sm/encrypt.c
index 1ad90f8dd..43087fc87 100644
--- a/sm/encrypt.c
+++ b/sm/encrypt.c
@@ -510,9 +510,8 @@ gpgsm_encrypt (CTRL ctrl, CERTLIST recplist, int data_fd, FILE *out_fp)
}
encparm.dek = dek;
- /* fixme: we should use a larger buffer - the small one is better
- for testing */
- encparm.bufsize = 10 * dek->ivlen;
+ /* Use a ~8k (AES) or ~4k (3DES) buffer */
+ encparm.bufsize = 500 * dek->ivlen;
encparm.buffer = xtrymalloc (encparm.bufsize);
if (!encparm.buffer)
{