Make xmss and xmss_fast test verify each signature

This commit is contained in:
Joost Rijneveld 2015-08-26 12:00:06 +02:00
parent 6ee57d1883
commit 3b75e0e133
2 changed files with 59 additions and 61 deletions

View File

@ -50,8 +50,6 @@ int main()
idx = ((unsigned long)sm[0] << 24) | ((unsigned long)sm[1] << 16) | ((unsigned long)sm[2] << 8) | sm[3];
printf("\nidx = %lu\n",idx);
}
r = memcmp(mi, sm+signature_length,MLEN);
printf("%d\n", r);
@ -80,6 +78,7 @@ int main()
r = memcmp(mi,mo,MLEN);
printf("%d\n", (r!=0) - 1);
printf("%llu\n", mlen+1);
}
fclose(urandom);
return 0;

View File

@ -1,7 +1,7 @@
#include <stdio.h>
#include <string.h>
#include "../xmss.h"
#include "../xmss_fast.h"
#define MLEN 3491
#define SIGNATURES 50
@ -50,8 +50,6 @@ int main()
idx = ((unsigned long)sm[0] << 24) | ((unsigned long)sm[1] << 16) | ((unsigned long)sm[2] << 8) | sm[3];
printf("\nidx = %lu\n",idx);
}
r = memcmp(mi, sm+signature_length,MLEN);
printf("%d\n", r);
@ -80,6 +78,7 @@ int main()
r = memcmp(mi,mo,MLEN);
printf("%d\n", (r!=0) - 1);
printf("%llu\n", mlen+1);
}
fclose(urandom);
return 0;