From 9a2385f308c9ce954f320ff0fe5c7b338796730a Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Wed, 15 Apr 2020 09:14:20 +0200 Subject: [PATCH] Update MQDSS round numbers Based on this change: https://github.com/joostrijneveld/MQDSS/commit/00608d7610262ff07b1834885d32bc3fd27ef5e1 --- crypto_sign/mqdss-48/META.yml | 8 ++++---- crypto_sign/mqdss-48/clean/api.h | 2 +- crypto_sign/mqdss-48/clean/params.h | 2 +- crypto_sign/mqdss-64/META.yml | 8 ++++---- crypto_sign/mqdss-64/clean/api.h | 2 +- crypto_sign/mqdss-64/clean/params.h | 2 +- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/crypto_sign/mqdss-48/META.yml b/crypto_sign/mqdss-48/META.yml index c6ab246e..9789d348 100644 --- a/crypto_sign/mqdss-48/META.yml +++ b/crypto_sign/mqdss-48/META.yml @@ -3,9 +3,9 @@ type: signature claimed-nist-level: 1 length-public-key: 46 length-secret-key: 16 -length-signature: 20854 -nistkat-sha256: 0a3754ebeb4bc41118b488c2b46499f6652398e83cb0d6eaf2929dbfd33fc8d7 -testvectors-sha256: 3350a80ccf4316b32ef13060fca8880d6802b7e61150fd36f021d1c52d8edb98 +length-signature: 28400 +nistkat-sha256: 9ca5c44144cfbf554748a1278f1abfdc97ae2ac4615561f2004c3f234c452d82 +testvectors-sha256: 9a2413984acd79b59d7270d0c05fbd1396a933f334362638fc2a1e7271f733f2 principal-submitters: - Simona Samardjiska auxiliary-submitters: @@ -15,4 +15,4 @@ auxiliary-submitters: - Peter Schwabe implementations: - name: clean - version: https://github.com/joostrijneveld/MQDSS/commit/0c64d4d67a37051c1299a3049a5bb8984ca27ecc + version: https://github.com/joostrijneveld/MQDSS/commit/00608d7610262ff07b1834885d32bc3fd27ef5e1 diff --git a/crypto_sign/mqdss-48/clean/api.h b/crypto_sign/mqdss-48/clean/api.h index e8890f52..2fa5c780 100644 --- a/crypto_sign/mqdss-48/clean/api.h +++ b/crypto_sign/mqdss-48/clean/api.h @@ -8,7 +8,7 @@ #define PQCLEAN_MQDSS48_CLEAN_CRYPTO_SECRETKEYBYTES 16 #define PQCLEAN_MQDSS48_CLEAN_CRYPTO_PUBLICKEYBYTES 46 -#define PQCLEAN_MQDSS48_CLEAN_CRYPTO_BYTES 20854 +#define PQCLEAN_MQDSS48_CLEAN_CRYPTO_BYTES 28400 /* * Generates an MQDSS key pair. diff --git a/crypto_sign/mqdss-48/clean/params.h b/crypto_sign/mqdss-48/clean/params.h index 39db6b72..94e47077 100644 --- a/crypto_sign/mqdss-48/clean/params.h +++ b/crypto_sign/mqdss-48/clean/params.h @@ -5,7 +5,7 @@ #define M N #define F_LEN (M * (((N * (N + 1)) >> 1) + N)) /* Number of elements in F */ -#define ROUNDS 135 +#define ROUNDS 184 /* Number of bytes that N, M and F_LEN elements require when packed into a byte array, 5-bit elements packed continuously. */ diff --git a/crypto_sign/mqdss-64/META.yml b/crypto_sign/mqdss-64/META.yml index 30bdb4f2..28feaa8c 100644 --- a/crypto_sign/mqdss-64/META.yml +++ b/crypto_sign/mqdss-64/META.yml @@ -3,9 +3,9 @@ type: signature claimed-nist-level: 3 length-public-key: 64 length-secret-key: 24 -length-signature: 43728 -nistkat-sha256: 2a50f067babbf4a3eed5197e87820472944d1d79fc03b1d9322a8ad8c245501e -testvectors-sha256: 1edd33ca64b14f60f153b84dd25c7064cfa9b7dbf1bb5c4296f343377cb0c864 +length-signature: 59928 +nistkat-sha256: afdfc887ec7d0ee648ea3802310ccff92ce0ed1f9c96d9d47ae3d5cf602785fd +testvectors-sha256: ff8afac3a7d4bbb8c088c23d12fdc0e0c3bc8aace57386ac20ac0a65ae4f3e68 principal-submitters: - Simona Samardjiska auxiliary-submitters: @@ -15,4 +15,4 @@ auxiliary-submitters: - Peter Schwabe implementations: - name: clean - version: https://github.com/joostrijneveld/MQDSS/commit/0c64d4d67a37051c1299a3049a5bb8984ca27ecc + version: https://github.com/joostrijneveld/MQDSS/commit/00608d7610262ff07b1834885d32bc3fd27ef5e1 diff --git a/crypto_sign/mqdss-64/clean/api.h b/crypto_sign/mqdss-64/clean/api.h index f4c04078..b44ce0e9 100644 --- a/crypto_sign/mqdss-64/clean/api.h +++ b/crypto_sign/mqdss-64/clean/api.h @@ -8,7 +8,7 @@ #define PQCLEAN_MQDSS64_CLEAN_CRYPTO_SECRETKEYBYTES 24 #define PQCLEAN_MQDSS64_CLEAN_CRYPTO_PUBLICKEYBYTES 64 -#define PQCLEAN_MQDSS64_CLEAN_CRYPTO_BYTES 43728 +#define PQCLEAN_MQDSS64_CLEAN_CRYPTO_BYTES 59928 /* * Generates an MQDSS key pair. diff --git a/crypto_sign/mqdss-64/clean/params.h b/crypto_sign/mqdss-64/clean/params.h index 038e3cb5..d0278f01 100644 --- a/crypto_sign/mqdss-64/clean/params.h +++ b/crypto_sign/mqdss-64/clean/params.h @@ -5,7 +5,7 @@ #define M N #define F_LEN (M * (((N * (N + 1)) >> 1) + N)) /* Number of elements in F */ -#define ROUNDS 202 +#define ROUNDS 277 /* Number of bytes that N, M and F_LEN elements require when packed into a byte array, 5-bit elements packed continuously. */