summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-04-18 14:40:43 +0200
committerWerner Koch <wk@gnupg.org>2013-04-18 15:55:08 +0200
commitf1f016855418aae561ede4472590d45a24ab4476 (patch)
tree6acdc217d53f6ebc43cf17d1db4ceabf267a6a3b
parent4cd279556777e02eda79973f68efaa4b741f9175 (diff)
downloadlibgcrypt-f1f016855418aae561ede4472590d45a24ab4476.tar.gz
cipher: Fix regression in Padlock support.
* cipher/rijndael.c (do_setkey): Remove dummy padlock key generation case and use the standard one. -- This is really a brown paper bag bug. I should have been able to fix it by a bit of code staring or bi-secting it myself. Instead Rafaël Carré did this and with the donation of a VIA nano board from Stefan Krüger. Thanks to both of you. (regression since commit b825c5db17292988d261fefdc83cbc43d97d4b02) Signed-off-by: Werner Koch <wk@gnupg.org>
-rw-r--r--THANKS1
-rw-r--r--cipher/rijndael.c9
2 files changed, 3 insertions, 7 deletions
diff --git a/THANKS b/THANKS
index 41f4c77a..0f47d4fa 100644
--- a/THANKS
+++ b/THANKS
@@ -130,6 +130,7 @@ Stephan Müller smueller at atsec com
Stephane Corthesy stephane@sente.ch
Stefan Karrmann S.Karrmann@gmx.net
Stefan Keller dres@cs.tu-berlin.de
+Stefan Krüger stadtkind2 at gmx de
Steffen Ullrich ccrlphr@xensei.com
Steffen Zahn zahn@berlin.snafu.de
Steven Bakker steven@icoe.att.com
diff --git a/cipher/rijndael.c b/cipher/rijndael.c
index 98162804..4e8eb3ab 100644
--- a/cipher/rijndael.c
+++ b/cipher/rijndael.c
@@ -279,15 +279,10 @@ do_setkey (RIJNDAEL_context *ctx, const byte *key, const unsigned keylen)
ctx->rounds = rounds;
+ /* NB: We don't yet support Padlock hardware key generation. */
+
if (0)
;
-#ifdef USE_PADLOCK
- else if (ctx->use_padlock)
- {
- /* Nothing to do as we support only hardware key generation for
- now. */
- }
-#endif /*USE_PADLOCK*/
#ifdef USE_AESNI_is_disabled_here
else if (ctx->use_aesni && ctx->rounds == 10)
{