buffer size of rsa_verify

This commit is contained in:
NIIBE Yutaka
2012-05-31 18:19:39 +09:00
parent 5cafb8a84f
commit 7860f1e729
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
2012-05-31 Niibe Yutaka <gniibe@fsij.org>
* polarssl-0.14.0/library/rsa.c (rsa_pkcs1_verify): BUF size is
256 (was: 1024).
* src/call-rsa.c (rsa_verify): It's SIG_RSA_SHA1.
* src/openpgp.c (cmd_external_authenticate): Follow the change of
rsa_verify.

View File

@@ -542,7 +542,7 @@ int rsa_pkcs1_verify( rsa_context *ctx,
{
int ret, len, siglen;
unsigned char *p, c;
unsigned char buf[1024];
unsigned char buf[256];
siglen = ctx->len;