Typo in rijndael.c

Richard H Lee ricardohenrylee at gmail.com
Sat Jan 17 01:33:30 CET 2015


I think there is a typo for the processor extension checks in rijndael.c

diff --git a/cipher/rijndael.c b/cipher/rijndael.c
index 51c36c7..a481e6f 100644
--- a/cipher/rijndael.c
+++ b/cipher/rijndael.c
@@ -325,7 +325,7 @@ do_setkey (RIJNDAEL_context *ctx, const byte *key, 
const unsigned keylen)
    else if (ctx->use_aesni)
      _gcry_aes_aesni_do_setkey (ctx, key);
  #endif
-#ifdef USE_AESNI
+#ifdef USE_SSSE3
    else if (ctx->use_ssse3)
      _gcry_aes_ssse3_do_setkey (ctx, key);
  #endif



More information about the Gcrypt-devel mailing list