diff --git a/.kdev4/xmss_ref.kdev4 b/.kdev4/xmss_ref.kdev4 deleted file mode 100644 index 652ca68..0000000 --- a/.kdev4/xmss_ref.kdev4 +++ /dev/null @@ -1,10 +0,0 @@ -[Buildset] -BuildItems=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x01\x00\x00\x00\x0b\x00\x00\x00\x00\x01\x00\x00\x00\x10\x00x\x00m\x00s\x00s\x00_\x00r\x00e\x00f) - -[Defines And Includes][Compiler] -Name=GCC -Path=gcc -Type=GCC - -[Project] -VersionControlSupport=kdevgit diff --git a/wots.c b/wots.c index b83ee10..772dd38 100644 --- a/wots.c +++ b/wots.c @@ -57,7 +57,7 @@ static void base_w(int *output, const int out_len, const unsigned char *input) { int in = 0; int out = 0; - uint32_t total = 0; + uint8_t total = 0; int bits = 0; int consumed = 0; @@ -103,7 +103,7 @@ void wots_sign(unsigned char *sig, const unsigned char *msg, const unsigned char unsigned char csum_bytes[len_2_bytes]; to_byte(csum_bytes, csum, len_2_bytes); - int csum_basew[len_2_bytes / XMSS_WOTS_LOG_W]; + int csum_basew[XMSS_WOTS_LEN2]; base_w(csum_basew, XMSS_WOTS_LEN2, csum_bytes); for (i = 0; i < XMSS_WOTS_LEN2; i++) { @@ -137,7 +137,7 @@ void wots_pkFromSig(unsigned char *pk, const unsigned char *sig, const unsigned unsigned char csum_bytes[len_2_bytes]; to_byte(csum_bytes, csum, len_2_bytes); - int csum_basew[len_2_bytes / XMSS_WOTS_LOG_W]; + int csum_basew[XMSS_WOTS_LEN2]; base_w(csum_basew, XMSS_WOTS_LEN2, csum_bytes); for (i = 0; i < XMSS_WOTS_LEN2; i++) { diff --git a/xmss_ref.kdev4 b/xmss_ref.kdev4 deleted file mode 100644 index d68f341..0000000 --- a/xmss_ref.kdev4 +++ /dev/null @@ -1,4 +0,0 @@ -[Project] -Name=xmss_ref -Manager=KDevCustomMakeManager -VersionControl=kdevgit