diff --git a/crypto_kem/ledakemlt12/META.yml b/crypto_kem/ledakemlt12/META.yml index 7748c267..e8de5a28 100644 --- a/crypto_kem/ledakemlt12/META.yml +++ b/crypto_kem/ledakemlt12/META.yml @@ -1,4 +1,4 @@ -name: LEDAcryptKEMLT12 +name: LEDAKEMLT12 type: kem claimed-nist-level: 1 claimed-security: IND-CCA2 diff --git a/crypto_kem/ledakemlt32/META.yml b/crypto_kem/ledakemlt32/META.yml index b5e2bf72..98e34015 100644 --- a/crypto_kem/ledakemlt32/META.yml +++ b/crypto_kem/ledakemlt32/META.yml @@ -1,4 +1,4 @@ -name: LEDAcryptKEMLT32 +name: LEDAKEMLT32 type: kem claimed-nist-level: 3 claimed-security: IND-CCA2 diff --git a/crypto_kem/ledakemlt52/META.yml b/crypto_kem/ledakemlt52/META.yml index a85d7d53..cd423afb 100644 --- a/crypto_kem/ledakemlt52/META.yml +++ b/crypto_kem/ledakemlt52/META.yml @@ -1,4 +1,4 @@ -name: LEDAcryptKEMLT52 +name: LEDAKEMLT52 type: kem claimed-nist-level: 5 claimed-security: IND-CCA2 diff --git a/crypto_kem/newhope1024cca/META.yml b/crypto_kem/newhope1024cca/META.yml index 34c2a104..dc7be2cc 100644 --- a/crypto_kem/newhope1024cca/META.yml +++ b/crypto_kem/newhope1024cca/META.yml @@ -1,4 +1,4 @@ -name: NewHope1024CCA +name: NewHope1024-CCAKEM type: kem claimed-nist-level: 5 claimed-security: IND-CCA2 diff --git a/crypto_kem/newhope1024cpa/META.yml b/crypto_kem/newhope1024cpa/META.yml index 0ec2415d..1fabd379 100644 --- a/crypto_kem/newhope1024cpa/META.yml +++ b/crypto_kem/newhope1024cpa/META.yml @@ -1,4 +1,4 @@ -name: NewHope1024CPA +name: NewHope1024-CPAKEM type: kem claimed-nist-level: 5 claimed-security: IND-CPA diff --git a/crypto_kem/newhope512cca/META.yml b/crypto_kem/newhope512cca/META.yml index 72a20378..da3bbec2 100644 --- a/crypto_kem/newhope512cca/META.yml +++ b/crypto_kem/newhope512cca/META.yml @@ -1,4 +1,4 @@ -name: NewHope512CCA +name: NewHope512-CCAKEM type: kem claimed-nist-level: 1 claimed-security: IND-CCA2 diff --git a/crypto_kem/newhope512cpa/META.yml b/crypto_kem/newhope512cpa/META.yml index bfb2f4d6..8afe6275 100644 --- a/crypto_kem/newhope512cpa/META.yml +++ b/crypto_kem/newhope512cpa/META.yml @@ -1,4 +1,4 @@ -name: NewHope512CPA +name: NewHope512-CPAKEM type: kem claimed-nist-level: 1 claimed-security: IND-CPA diff --git a/crypto_kem/ntruhps2048509/META.yml b/crypto_kem/ntruhps2048509/META.yml index 0b5f790f..cf2f3632 100644 --- a/crypto_kem/ntruhps2048509/META.yml +++ b/crypto_kem/ntruhps2048509/META.yml @@ -1,4 +1,4 @@ -name: ntru-hps2048509 +name: NTRU-HPS2048509 type: kem claimed-nist-level: 1 claimed-security: IND-CCA2 diff --git a/crypto_kem/ntruhps2048677/META.yml b/crypto_kem/ntruhps2048677/META.yml index 29d2fc4f..1e44307f 100644 --- a/crypto_kem/ntruhps2048677/META.yml +++ b/crypto_kem/ntruhps2048677/META.yml @@ -1,4 +1,4 @@ -name: ntru-hps2048677 +name: NTRU-HPS2048677 type: kem claimed-nist-level: 3 claimed-security: IND-CCA2 diff --git a/crypto_kem/ntruhps4096821/META.yml b/crypto_kem/ntruhps4096821/META.yml index de51b955..778b3cbe 100644 --- a/crypto_kem/ntruhps4096821/META.yml +++ b/crypto_kem/ntruhps4096821/META.yml @@ -1,4 +1,4 @@ -name: ntru-hps4096821 +name: NTRU-HPS4096821 type: kem claimed-nist-level: 5 claimed-security: IND-CCA2 diff --git a/crypto_kem/ntruhrss701/META.yml b/crypto_kem/ntruhrss701/META.yml index d5fc9df4..d6352d1b 100644 --- a/crypto_kem/ntruhrss701/META.yml +++ b/crypto_kem/ntruhrss701/META.yml @@ -1,4 +1,4 @@ -name: ntru-hrss701 +name: NTRU-HRSS701 type: kem claimed-nist-level: 3 claimed-security: IND-CCA2 diff --git a/crypto_sign/dilithium2/META.yml b/crypto_sign/dilithium2/META.yml index 0d3b9873..bf7c4cff 100644 --- a/crypto_sign/dilithium2/META.yml +++ b/crypto_sign/dilithium2/META.yml @@ -1,4 +1,4 @@ -name: DilithiumII +name: Dilithium2 type: signature claimed-nist-level: 1 length-public-key: 1184 diff --git a/crypto_sign/dilithium3/META.yml b/crypto_sign/dilithium3/META.yml index cdc25399..58f92d67 100644 --- a/crypto_sign/dilithium3/META.yml +++ b/crypto_sign/dilithium3/META.yml @@ -1,4 +1,4 @@ -name: DilithiumIII +name: Dilithium3 type: signature claimed-nist-level: 2 length-public-key: 1472 diff --git a/crypto_sign/dilithium4/META.yml b/crypto_sign/dilithium4/META.yml index 26a569c6..7dffe06a 100644 --- a/crypto_sign/dilithium4/META.yml +++ b/crypto_sign/dilithium4/META.yml @@ -1,4 +1,4 @@ -name: DilithiumIV +name: Dilithium4 type: signature claimed-nist-level: 3 length-public-key: 1760 diff --git a/test/crypto_kem/printparams.c b/test/crypto_kem/printparams.c index 925b2119..efdaf5a0 100644 --- a/test/crypto_kem/printparams.c +++ b/test/crypto_kem/printparams.c @@ -10,5 +10,6 @@ int main() { printf("\t\"CRYPTO_SECRETKEYBYTES\": %u,\n", NAMESPACE(CRYPTO_SECRETKEYBYTES)); printf("\t\"CRYPTO_PUBLICKEYBYTES\": %u,\n", NAMESPACE(CRYPTO_PUBLICKEYBYTES)); printf("\t\"CRYPTO_CIPHERTEXTBYTES\": %u,\n", NAMESPACE(CRYPTO_CIPHERTEXTBYTES)); - printf("\t\"CRYPTO_BYTES\": %u\n}\n", NAMESPACE(CRYPTO_BYTES)); + printf("\t\"CRYPTO_BYTES\": %u,\n", NAMESPACE(CRYPTO_BYTES)); + printf("\t\"CRYPTO_ALGNAME\": \"%s\"\n}\n", NAMESPACE(CRYPTO_ALGNAME)); } diff --git a/test/crypto_sign/printparams.c b/test/crypto_sign/printparams.c index 8c38767c..eb218c87 100644 --- a/test/crypto_sign/printparams.c +++ b/test/crypto_sign/printparams.c @@ -9,5 +9,6 @@ int main() { printf("{\n"); printf("\t\"CRYPTO_SECRETKEYBYTES\": %u,\n", NAMESPACE(CRYPTO_SECRETKEYBYTES)); printf("\t\"CRYPTO_PUBLICKEYBYTES\": %u,\n", NAMESPACE(CRYPTO_PUBLICKEYBYTES)); - printf("\t\"CRYPTO_BYTES\": %u\n}\n", NAMESPACE(CRYPTO_BYTES)); + printf("\t\"CRYPTO_BYTES\": %u,\n", NAMESPACE(CRYPTO_BYTES)); + printf("\t\"CRYPTO_ALGNAME\": \"%s\"\n}\n", NAMESPACE(CRYPTO_ALGNAME)); } diff --git a/test/test_metadata_sizes.py b/test/test_metadata_sizes.py index 439310f0..950f212a 100644 --- a/test/test_metadata_sizes.py +++ b/test/test_metadata_sizes.py @@ -37,6 +37,7 @@ def test_metadata_sizes(implementation, impl_path, test_dir, init, destr): assert parsed['CRYPTO_SECRETKEYBYTES'] == metadata['length-secret-key'] assert parsed['CRYPTO_PUBLICKEYBYTES'] == metadata['length-public-key'] + assert parsed['CRYPTO_ALGNAME'] == metadata['name'] if implementation.scheme.type == 'kem': assert (