mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 07:35:38 +00:00
Merge pull request #233 from PQClean/fix_algonames
Check and fix consistency of scheme names
This commit is contained in:
commit
4be5e497dc
@ -1,4 +1,4 @@
|
||||
name: LEDAcryptKEMLT12
|
||||
name: LEDAKEMLT12
|
||||
type: kem
|
||||
claimed-nist-level: 1
|
||||
claimed-security: IND-CCA2
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: LEDAcryptKEMLT32
|
||||
name: LEDAKEMLT32
|
||||
type: kem
|
||||
claimed-nist-level: 3
|
||||
claimed-security: IND-CCA2
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: LEDAcryptKEMLT52
|
||||
name: LEDAKEMLT52
|
||||
type: kem
|
||||
claimed-nist-level: 5
|
||||
claimed-security: IND-CCA2
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: NewHope1024CCA
|
||||
name: NewHope1024-CCAKEM
|
||||
type: kem
|
||||
claimed-nist-level: 5
|
||||
claimed-security: IND-CCA2
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: NewHope1024CPA
|
||||
name: NewHope1024-CPAKEM
|
||||
type: kem
|
||||
claimed-nist-level: 5
|
||||
claimed-security: IND-CPA
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: NewHope512CCA
|
||||
name: NewHope512-CCAKEM
|
||||
type: kem
|
||||
claimed-nist-level: 1
|
||||
claimed-security: IND-CCA2
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: NewHope512CPA
|
||||
name: NewHope512-CPAKEM
|
||||
type: kem
|
||||
claimed-nist-level: 1
|
||||
claimed-security: IND-CPA
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: ntru-hps2048509
|
||||
name: NTRU-HPS2048509
|
||||
type: kem
|
||||
claimed-nist-level: 1
|
||||
claimed-security: IND-CCA2
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: ntru-hps2048677
|
||||
name: NTRU-HPS2048677
|
||||
type: kem
|
||||
claimed-nist-level: 3
|
||||
claimed-security: IND-CCA2
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: ntru-hps4096821
|
||||
name: NTRU-HPS4096821
|
||||
type: kem
|
||||
claimed-nist-level: 5
|
||||
claimed-security: IND-CCA2
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: ntru-hrss701
|
||||
name: NTRU-HRSS701
|
||||
type: kem
|
||||
claimed-nist-level: 3
|
||||
claimed-security: IND-CCA2
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: DilithiumII
|
||||
name: Dilithium2
|
||||
type: signature
|
||||
claimed-nist-level: 1
|
||||
length-public-key: 1184
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: DilithiumIII
|
||||
name: Dilithium3
|
||||
type: signature
|
||||
claimed-nist-level: 2
|
||||
length-public-key: 1472
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: DilithiumIV
|
||||
name: Dilithium4
|
||||
type: signature
|
||||
claimed-nist-level: 3
|
||||
length-public-key: 1760
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user