From efabbcf305ba947e6ecfbba5d0e314b7e2f18f93 Mon Sep 17 00:00:00 2001 From: toddouska Date: Fri, 26 Aug 2016 13:47:53 -0700 Subject: [PATCH] fix normal math 16bit digit_bit for all ecc sizes --- wolfssl/wolfcrypt/integer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/wolfssl/wolfcrypt/integer.h b/wolfssl/wolfcrypt/integer.h index 3c8a0020a..3aa808b88 100644 --- a/wolfssl/wolfcrypt/integer.h +++ b/wolfssl/wolfcrypt/integer.h @@ -96,6 +96,7 @@ extern "C" { #elif defined(MP_16BIT) || defined(NO_64BIT) typedef unsigned short mp_digit; typedef unsigned int mp_word; + #define DIGIT_BIT 12 #elif defined(MP_64BIT) /* for GCC only on supported platforms */ typedef unsigned long long mp_digit; /* 64 bit type, 128 uses mode(TI) */