From d39d7c66dbab4fa3497a2b7b9b65a011f308b121 Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Fri, 5 Apr 2019 16:38:11 +0200 Subject: [PATCH 1/2] Add missing metadata to META --- crypto_kem/frodokem640shake/META.yml | 2 ++ crypto_kem/kyber768/META.yml | 2 ++ crypto_sign/dilithium-iii/META.yml | 1 + test/test_metadata.py | 2 ++ 4 files changed, 7 insertions(+) diff --git a/crypto_kem/frodokem640shake/META.yml b/crypto_kem/frodokem640shake/META.yml index 87c37449..06763cf2 100644 --- a/crypto_kem/frodokem640shake/META.yml +++ b/crypto_kem/frodokem640shake/META.yml @@ -2,7 +2,9 @@ name: FrodoKEM-640-SHAKE type: kem claimed-nist-level: 1 length-public-key: 9616 +length-secret-key: 19888 length-ciphertext: 9720 +length-shared-secret: 16 testvectors-sha256: 521ff891de20efe74e6584d09612dae989427ac76261a41630c4e4d6a4fc78a4 principal-submitter: Douglas Stebila, University of Waterloo auxiliary-submitters: diff --git a/crypto_kem/kyber768/META.yml b/crypto_kem/kyber768/META.yml index 62d8903e..f10bc439 100644 --- a/crypto_kem/kyber768/META.yml +++ b/crypto_kem/kyber768/META.yml @@ -2,7 +2,9 @@ name: Kyber768 type: kem claimed-nist-level: 3 length-public-key: 1088 +length-secret-key: 2400 length-ciphertext: 1152 +length-shared-secret: 32 testvectors-sha256: 0e002ee528febdab1709f100df79ceb00b31a809e03a4fb84e3a72c39235d372 principal-submitter: Peter Schwabe auxiliary-submitters: diff --git a/crypto_sign/dilithium-iii/META.yml b/crypto_sign/dilithium-iii/META.yml index 4f207176..02634b95 100644 --- a/crypto_sign/dilithium-iii/META.yml +++ b/crypto_sign/dilithium-iii/META.yml @@ -2,6 +2,7 @@ name: Dilithium-III type: signature claimed-nist-level: 3 length-public-key: 1472 +length-secret-key: 3504 length-signature: 2701 testvectors-sha256: e1852a975842c44a683c914ed131d95bee9b786c36c41e47bb77d7dd3c0c07be principal-submitter: Vadim Lyubashevsky diff --git a/test/test_metadata.py b/test/test_metadata.py index 71ca7798..ea2b4131 100644 --- a/test/test_metadata.py +++ b/test/test_metadata.py @@ -42,6 +42,7 @@ EXPECTED_FIELDS = { 'type': {'type': str}, 'claimed-nist-level': {'type': int, 'min': 1, 'max': 5}, 'length-public-key': {'type': int, 'min': 1}, + 'length-secret-key': {'type': int, 'min': 1}, 'testvectors-sha256': {'type': str, 'length': 64}, 'principal-submitter': {'type': str}, 'auxiliary-submitters': {'type': list, 'elements': {'type': str}}, @@ -59,6 +60,7 @@ EXPECTED_FIELDS = { KEM_FIELDS = { 'length-ciphertext': {'type': int, 'min': 1}, + 'length-shared-secret': {'type': int, 'min': 1}, } SIGNATURE_FIELDS = { From 1523a5ce479a708d04ea713f507973266ac6ae7e Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Fri, 5 Apr 2019 16:38:42 +0200 Subject: [PATCH 2/2] Fix shared-secret in CONTRIBUTING --- CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5126659d..a9595c44 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,7 +28,7 @@ See the section [API](#API) below. length-public-key: # KEM and signature length-secret-key: # KEM and signature length-ciphertext: # KEM only - length-sharedsecret: # KEM only + length-shared-secret: # KEM only length-signature: # Signature only testvectors-sha256: sha256sum of output of testvectors principal-submitter: Eve