[svn] gcry - r1353 - trunk/tests
svn author wk
cvs at cvs.gnupg.org
Fri Oct 31 14:57:40 CET 2008
Author: wk
Date: 2008-10-31 14:57:39 +0100 (Fri, 31 Oct 2008)
New Revision: 1353
Modified:
trunk/tests/ChangeLog
trunk/tests/fipsdrv.c
Log:
Increase a buffer for use with SHA-512.
Modified: trunk/tests/ChangeLog
===================================================================
--- trunk/tests/ChangeLog 2008-10-30 11:56:57 UTC (rev 1352)
+++ trunk/tests/ChangeLog 2008-10-31 13:57:39 UTC (rev 1353)
@@ -1,3 +1,7 @@
+2008-10-31 Werner Koch <wk at g10code.com>
+
+ * fipsdrv.c (run_rsa_sign): Buffer needs to be larger for SHA512.
+
2008-10-27 Werner Koch <wk at g10code.com>
* fipsdrv.c (run_encrypt_decrypt): Make IV_BUFFER optional.
Modified: trunk/tests/fipsdrv.c
===================================================================
--- trunk/tests/fipsdrv.c 2008-10-30 11:56:57 UTC (rev 1352)
+++ trunk/tests/fipsdrv.c 2008-10-31 13:57:39 UTC (rev 1353)
@@ -799,8 +799,8 @@
{ "des-ecb", GCRY_CIPHER_DES, GCRY_CIPHER_MODE_ECB },
{ "des-ede3-cbc", GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC },
- { "des-ede3 ", GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_ECB },
- { "des3 ", GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC },
+ { "des-ede3", GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_ECB },
+ { "des3", GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CBC },
{ "des-ede3-cfb", GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_CFB },
{ "des-ede3-ofb", GCRY_CIPHER_3DES, GCRY_CIPHER_MODE_OFB },
@@ -1151,7 +1151,7 @@
/* showhex ("D", data, datalen); */
if (pkcs1)
{
- unsigned char hash[50];
+ unsigned char hash[64];
unsigned int hashsize;
hashsize = gcry_md_get_algo_dlen (hashalgo);
More information about the Gnupg-commits
mailing list