Browse Source

Merge branch 'fix_metadata'

Fixes the metadata test and adds the missing information.
tags/v0.0.1
Thom Wiggers 5 years ago
parent
commit
cc65166063
No known key found for this signature in database GPG Key ID: 1BB0A7CE26E363
5 changed files with 8 additions and 1 deletions
  1. +1
    -1
      CONTRIBUTING.md
  2. +2
    -0
      crypto_kem/frodokem640shake/META.yml
  3. +2
    -0
      crypto_kem/kyber768/META.yml
  4. +1
    -0
      crypto_sign/dilithium-iii/META.yml
  5. +2
    -0
      test/test_metadata.py

+ 1
- 1
CONTRIBUTING.md View File

@@ -28,7 +28,7 @@ See the section [API](#API) below.
length-public-key: <N> # KEM and signature length-public-key: <N> # KEM and signature
length-secret-key: <N> # KEM and signature length-secret-key: <N> # KEM and signature
length-ciphertext: <N> # KEM only length-ciphertext: <N> # KEM only
length-sharedsecret: <N> # KEM only
length-shared-secret: <N> # KEM only
length-signature: <N> # Signature only length-signature: <N> # Signature only
testvectors-sha256: sha256sum of output of testvectors testvectors-sha256: sha256sum of output of testvectors
principal-submitter: Eve principal-submitter: Eve


+ 2
- 0
crypto_kem/frodokem640shake/META.yml View File

@@ -2,7 +2,9 @@ name: FrodoKEM-640-SHAKE
type: kem type: kem
claimed-nist-level: 1 claimed-nist-level: 1
length-public-key: 9616 length-public-key: 9616
length-secret-key: 19888
length-ciphertext: 9720 length-ciphertext: 9720
length-shared-secret: 16
testvectors-sha256: 521ff891de20efe74e6584d09612dae989427ac76261a41630c4e4d6a4fc78a4 testvectors-sha256: 521ff891de20efe74e6584d09612dae989427ac76261a41630c4e4d6a4fc78a4
principal-submitter: Douglas Stebila, University of Waterloo principal-submitter: Douglas Stebila, University of Waterloo
auxiliary-submitters: auxiliary-submitters:


+ 2
- 0
crypto_kem/kyber768/META.yml View File

@@ -2,7 +2,9 @@ name: Kyber768
type: kem type: kem
claimed-nist-level: 3 claimed-nist-level: 3
length-public-key: 1088 length-public-key: 1088
length-secret-key: 2400
length-ciphertext: 1152 length-ciphertext: 1152
length-shared-secret: 32
testvectors-sha256: 0e002ee528febdab1709f100df79ceb00b31a809e03a4fb84e3a72c39235d372 testvectors-sha256: 0e002ee528febdab1709f100df79ceb00b31a809e03a4fb84e3a72c39235d372
principal-submitter: Peter Schwabe principal-submitter: Peter Schwabe
auxiliary-submitters: auxiliary-submitters:


+ 1
- 0
crypto_sign/dilithium-iii/META.yml View File

@@ -2,6 +2,7 @@ name: Dilithium-III
type: signature type: signature
claimed-nist-level: 3 claimed-nist-level: 3
length-public-key: 1472 length-public-key: 1472
length-secret-key: 3504
length-signature: 2701 length-signature: 2701
testvectors-sha256: e1852a975842c44a683c914ed131d95bee9b786c36c41e47bb77d7dd3c0c07be testvectors-sha256: e1852a975842c44a683c914ed131d95bee9b786c36c41e47bb77d7dd3c0c07be
principal-submitter: Vadim Lyubashevsky principal-submitter: Vadim Lyubashevsky


+ 2
- 0
test/test_metadata.py View File

@@ -42,6 +42,7 @@ EXPECTED_FIELDS = {
'type': {'type': str}, 'type': {'type': str},
'claimed-nist-level': {'type': int, 'min': 1, 'max': 5}, 'claimed-nist-level': {'type': int, 'min': 1, 'max': 5},
'length-public-key': {'type': int, 'min': 1}, 'length-public-key': {'type': int, 'min': 1},
'length-secret-key': {'type': int, 'min': 1},
'testvectors-sha256': {'type': str, 'length': 64}, 'testvectors-sha256': {'type': str, 'length': 64},
'principal-submitter': {'type': str}, 'principal-submitter': {'type': str},
'auxiliary-submitters': {'type': list, 'elements': {'type': str}}, 'auxiliary-submitters': {'type': list, 'elements': {'type': str}},
@@ -59,6 +60,7 @@ EXPECTED_FIELDS = {


KEM_FIELDS = { KEM_FIELDS = {
'length-ciphertext': {'type': int, 'min': 1}, 'length-ciphertext': {'type': int, 'min': 1},
'length-shared-secret': {'type': int, 'min': 1},
} }


SIGNATURE_FIELDS = { SIGNATURE_FIELDS = {


Loading…
Cancel
Save