mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-26 17:31:38 +00:00
Clarify and reduce iterations for sig testvectors
This is actually different from signature functests, which only tests mlen=32. Can be fixed later as that does not impact the testvectors.
This commit is contained in:
parent
19d177efb3
commit
f355e77407
@ -3,7 +3,7 @@ type: signature
|
|||||||
claimed-nist-level: 3
|
claimed-nist-level: 3
|
||||||
length-public-key: 1472
|
length-public-key: 1472
|
||||||
length-signature: 2701
|
length-signature: 2701
|
||||||
testvectors-sha256: e1852a975842c44a683c914ed131d95bee9b786c36c41e47bb77d7dd3c0c07be
|
testvectors-sha256: 0d9d7a41b24ab8b250c352fdb50318193f2f66c6c582d7721b785b1a4618b493
|
||||||
principal-submitter: Vadim Lyubashevsky
|
principal-submitter: Vadim Lyubashevsky
|
||||||
auxiliary-submitters:
|
auxiliary-submitters:
|
||||||
- Léo Ducas
|
- Léo Ducas
|
||||||
|
@ -6,7 +6,6 @@
|
|||||||
#include "api.h"
|
#include "api.h"
|
||||||
#include "randombytes.h"
|
#include "randombytes.h"
|
||||||
|
|
||||||
#define NTESTS 100
|
|
||||||
#define MAXMLEN 2048
|
#define MAXMLEN 2048
|
||||||
|
|
||||||
static void printbytes(const uint8_t *x, size_t xlen) {
|
static void printbytes(const uint8_t *x, size_t xlen) {
|
||||||
@ -43,7 +42,8 @@ int main(void) {
|
|||||||
int r;
|
int r;
|
||||||
size_t i, k;
|
size_t i, k;
|
||||||
|
|
||||||
for (i = 0; i < MAXMLEN; i = (i == 0) ? i + 1 : i << 1) {
|
/* i = 0, 1, 4, 16, 64, 256, 1024 */
|
||||||
|
for (i = 0; i < MAXMLEN; i = (i == 0) ? i + 1 : i << 2) {
|
||||||
randombytes(mi, i);
|
randombytes(mi, i);
|
||||||
|
|
||||||
crypto_sign_keypair(pk, sk);
|
crypto_sign_keypair(pk, sk);
|
||||||
|
Loading…
Reference in New Issue
Block a user