Skip to content

Commit

Permalink
generated and formated all methods
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Ventura <[email protected]>
  • Loading branch information
feventura committed Mar 17, 2024
1 parent 00a98d7 commit 81c2575
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
3 changes: 3 additions & 0 deletions ALGORITHMS.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ adapting the OIDs of all supported signature algorithms as per the table below.
| mldsa65_ed25519 | 2.16.840.1.114027.80.8.1.10 |Yes| OQS_OID_MLDSA65_ed25519
| mldsa87 | 1.3.6.1.4.1.2.267.12.8.7 |Yes| OQS_OID_MLDSA87
| p521_mldsa87 | 1.3.9999.7.4 |Yes| OQS_OID_P521_MLDSA87
| mldsa87_p384 | 2.16.840.1.114027.80.8.1.11 |Yes| OQS_OID_MLDSA87_p384
| mldsa87_bp384 | 2.16.840.1.114027.80.8.1.12 |Yes| OQS_OID_MLDSA87_bp384
| mldsa87_ed448 | 2.16.840.1.114027.80.8.1.13 |Yes| OQS_OID_MLDSA87_ed448
| falcon512 | 1.3.9999.3.11 |Yes| OQS_OID_FALCON512
| p256_falcon512 | 1.3.9999.3.12 |Yes| OQS_OID_P256_FALCON512
| rsa3072_falcon512 | 1.3.9999.3.13 |Yes| OQS_OID_RSA3072_FALCON512
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ This implementation makes available the following quantum safe algorithms:
### Signature algorithms

- **CRYSTALS-Dilithium**:`dilithium2`\*, `p256_dilithium2`\*, `rsa3072_dilithium2`\*, `dilithium3`\*, `p384_dilithium3`\*, `dilithium5`\*, `p521_dilithium5`\*
- **ML-DSA**:`mldsa44`\*, `p256_mldsa44`\*, `rsa3072_mldsa44`\*, `mldsa65`\*, `p384_mldsa65`\*, `mldsa87`\*, `p521_mldsa87`\*
- **ML-DSA**:`mldsa44`\*, `p256_mldsa44`\*, `rsa3072_mldsa44`\*, `mldsa44_pss2048`\*, `mldsa44_rsa2048`\*, `mldsa44_ed25519`\*, `mldsa44_p256`\*, `mldsa44_bp256`\*, `mldsa65`\*, `p384_mldsa65`\*, `mldsa65_pss3072`\*, `mldsa65_rsa3072`\*, `mldsa65_p256`\*, `mldsa65_bp256`\*, `mldsa65_ed25519`\*, `mldsa87`\*, `p521_mldsa87`\*, `mldsa87_p384`\*, `mldsa87_bp384`\*, `mldsa87_ed448`\*
- **Falcon**:`falcon512`\*, `p256_falcon512`\*, `rsa3072_falcon512`\*, `falconpadded512`\*, `p256_falconpadded512`\*, `rsa3072_falconpadded512`\*, `falcon1024`\*, `p521_falcon1024`\*, `falconpadded1024`\*, `p521_falconpadded1024`\*

- **SPHINCS-SHA2**:`sphincssha2128fsimple`\*, `p256_sphincssha2128fsimple`\*, `rsa3072_sphincssha2128fsimple`\*, `sphincssha2128ssimple`\*, `p256_sphincssha2128ssimple`\*, `rsa3072_sphincssha2128ssimple`\*, `sphincssha2192fsimple`\*, `p384_sphincssha2192fsimple`\*, `sphincssha2192ssimple`, `p384_sphincssha2192ssimple`, `sphincssha2256fsimple`, `p521_sphincssha2256fsimple`, `sphincssha2256ssimple`, `p521_sphincssha2256ssimple`
Expand Down
18 changes: 6 additions & 12 deletions oqsprov/oqsprov.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,21 +539,15 @@ int oqs_patch_encodings(void)
= getenv("OQS_ENCODING_P521_DILITHIUM5_ALGNAME");
if (getenv("OQS_ENCODING_MLDSA44"))
oqs_alg_encoding_list[14] = getenv("OQS_ENCODING_MLDSA44");
oqs_alg_encoding_list[14] = getenv("OQS_ENCODING_MLDSA44");
if (getenv("OQS_ENCODING_MLDSA44_ALGNAME"))
oqs_alg_encoding_list[15] = getenv("OQS_ENCODING_MLDSA44_ALGNAME");
oqs_alg_encoding_list[15] = getenv("OQS_ENCODING_MLDSA44_ALGNAME");
if (getenv("OQS_ENCODING_P256_MLDSA44"))
oqs_alg_encoding_list[16] = getenv("OQS_ENCODING_P256_MLDSA44");
oqs_alg_encoding_list[16] = getenv("OQS_ENCODING_P256_MLDSA44");
if (getenv("OQS_ENCODING_P256_MLDSA44_ALGNAME"))
oqs_alg_encoding_list[17] = getenv("OQS_ENCODING_P256_MLDSA44_ALGNAME");
oqs_alg_encoding_list[17] = getenv("OQS_ENCODING_P256_MLDSA44_ALGNAME");
if (getenv("OQS_ENCODING_RSA3072_MLDSA44"))
oqs_alg_encoding_list[18] = getenv("OQS_ENCODING_RSA3072_MLDSA44");
oqs_alg_encoding_list[18] = getenv("OQS_ENCODING_RSA3072_MLDSA44");
if (getenv("OQS_ENCODING_RSA3072_MLDSA44_ALGNAME"))
oqs_alg_encoding_list[19]
oqs_alg_encoding_list[19]
= getenv("OQS_ENCODING_RSA3072_MLDSA44_ALGNAME");
if (getenv("OQS_ENCODING_MLDSA44_PSS2048"))
Expand Down Expand Up @@ -635,18 +629,18 @@ int oqs_patch_encodings(void)
oqs_alg_encoding_list[53]
= getenv("OQS_ENCODING_MLDSA87_ED448_ALGNAME");
if (getenv("OQS_ENCODING_FALCON512"))
oqs_alg_encoding_list[28] = getenv("OQS_ENCODING_FALCON512");
oqs_alg_encoding_list[54] = getenv("OQS_ENCODING_FALCON512");
if (getenv("OQS_ENCODING_FALCON512_ALGNAME"))
oqs_alg_encoding_list[29] = getenv("OQS_ENCODING_FALCON512_ALGNAME");
oqs_alg_encoding_list[55] = getenv("OQS_ENCODING_FALCON512_ALGNAME");
if (getenv("OQS_ENCODING_P256_FALCON512"))
oqs_alg_encoding_list[30] = getenv("OQS_ENCODING_P256_FALCON512");
oqs_alg_encoding_list[56] = getenv("OQS_ENCODING_P256_FALCON512");
if (getenv("OQS_ENCODING_P256_FALCON512_ALGNAME"))
oqs_alg_encoding_list[31]
oqs_alg_encoding_list[57]
= getenv("OQS_ENCODING_P256_FALCON512_ALGNAME");
if (getenv("OQS_ENCODING_RSA3072_FALCON512"))
oqs_alg_encoding_list[32] = getenv("OQS_ENCODING_RSA3072_FALCON512");
oqs_alg_encoding_list[58] = getenv("OQS_ENCODING_RSA3072_FALCON512");
if (getenv("OQS_ENCODING_RSA3072_FALCON512_ALGNAME"))
oqs_alg_encoding_list[33]
oqs_alg_encoding_list[59]
= getenv("OQS_ENCODING_RSA3072_FALCON512_ALGNAME");
if (getenv("OQS_ENCODING_FALCONPADDED512"))
oqs_alg_encoding_list[60] = getenv("OQS_ENCODING_FALCONPADDED512");
Expand Down
2 changes: 2 additions & 0 deletions scripts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
'dilithium2','dilithium3','dilithium5','mldsa44','mldsa65','mldsa87','falcon512','falconpadded512','falcon1024','falconpadded1024','sphincssha2128fsimple','sphincssha2128ssimple','sphincssha2192fsimple','sphincsshake128fsimple',
# post-quantum + classical signatures
'p256_dilithium2','rsa3072_dilithium2','p384_dilithium3','p521_dilithium5','p256_mldsa44','rsa3072_mldsa44','p384_mldsa65','p521_mldsa87','p256_falcon512','rsa3072_falcon512','p256_falconpadded512','rsa3072_falconpadded512','p521_falcon1024','p521_falconpadded1024','p256_sphincssha2128fsimple','rsa3072_sphincssha2128fsimple','p256_sphincssha2128ssimple','rsa3072_sphincssha2128ssimple','p384_sphincssha2192fsimple','p256_sphincsshake128fsimple','rsa3072_sphincsshake128fsimple',
# post-quantum + classical signatures (COMPOSITE)
'mldsa44_pss2048','mldsa44_rsa2048','mldsa44_ed25519','mldsa44_p256','mldsa44_bp256','mldsa65_pss3072','mldsa65_rsa3072','mldsa65_p256','mldsa65_bp256','mldsa65_ed25519','mldsa87_p384','mldsa87_bp384','mldsa87_ed448',
##### OQS_TEMPLATE_FRAGMENT_SIG_ALGS_END
]

Expand Down

0 comments on commit 81c2575

Please sign in to comment.