Browse Source

allow TAB_SIZE to be defined at compile-time

Steffen Jaeckel 7 years ago
parent
commit
3249dcb963
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/headers/tomcrypt.h

+ 2 - 0
src/headers/tomcrypt.h

@@ -32,8 +32,10 @@ extern "C" {
 /* max size of either a cipher/hash block or symmetric key [largest of the two] */
 /* max size of either a cipher/hash block or symmetric key [largest of the two] */
 #define MAXBLOCKSIZE  128
 #define MAXBLOCKSIZE  128
 
 
+#ifndef TAB_SIZE
 /* descriptor table size */
 /* descriptor table size */
 #define TAB_SIZE      32
 #define TAB_SIZE      32
+#endif
 
 
 /* error codes [will be expanded in future releases] */
 /* error codes [will be expanded in future releases] */
 enum {
 enum {