Browse Source

fix define LTC_YARROW_AES

Larry Bugbee 12 years ago
parent
commit
8e22b17a8e
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/headers/tomcrypt_custom.h

+ 5 - 1
src/headers/tomcrypt_custom.h

@@ -256,7 +256,11 @@
 #define LTC_YARROW
 /* which descriptor of AES to use?  */
 /* 0 = rijndael_enc 1 = aes_enc, 2 = rijndael [full], 3 = aes [full] */
-#define LTC_YARROW_AES 0
+#ifdef ENCRYPT_ONLY
+  #define LTC_YARROW_AES 0
+#else
+  #define LTC_YARROW_AES 2
+#endif
 
 #if defined(LTC_YARROW) && !defined(LTC_CTR_MODE)
    #error LTC_YARROW requires LTC_CTR_MODE chaining mode to be defined!