Skip to content

Commit

Permalink
added more composite documentation
Browse files Browse the repository at this point in the history
Signed-off-by: feventura <[email protected]>
  • Loading branch information
feventura committed Aug 27, 2024
1 parent d05fe79 commit 5e20718
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 14 deletions.
26 changes: 13 additions & 13 deletions ALGORITHMS.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,23 @@ As standardization for these algorithms within TLS is not done, all TLS code poi
| mldsa44 | 0xfed0 |Yes| OQS_CODEPOINT_MLDSA44
| p256_mldsa44 | 0xfed3 |Yes| OQS_CODEPOINT_P256_MLDSA44
| rsa3072_mldsa44 | 0xfed4 |Yes| OQS_CODEPOINT_RSA3072_MLDSA44
| mldsa44_pss2048 | 0xfee1 |Yes| OQS_OID_MLDSA44_pss2048
| mldsa44_rsa2048 | 0xfee2 |Yes| OQS_OID_MLDSA44_rsa2048
| mldsa44_ed25519 | 0xfee3 |Yes| OQS_OID_MLDSA44_ed25519
| mldsa44_p256 | 0xfee4 |Yes| OQS_OID_MLDSA44_p256
| mldsa44_bp256 | 0xfee5 |Yes| OQS_OID_MLDSA44_bp256
| mldsa44_pss2048 | 0xfee1 |Yes| OQS_CODEPOINT_MLDSA44_pss2048
| mldsa44_rsa2048 | 0xfee2 |Yes| OQS_CODEPOINT_MLDSA44_rsa2048
| mldsa44_ed25519 | 0xfee3 |Yes| OQS_CODEPOINT_MLDSA44_ed25519
| mldsa44_p256 | 0xfee4 |Yes| OQS_CODEPOINT_MLDSA44_p256
| mldsa44_bp256 | 0xfee5 |Yes| OQS_CODEPOINT_MLDSA44_bp256
| mldsa65 | 0xfed1 |Yes| OQS_CODEPOINT_MLDSA65
| p384_mldsa65 | 0xfed5 |Yes| OQS_CODEPOINT_P384_MLDSA65
| mldsa65_pss3072 | 0xfee6 |Yes| OQS_OID_MLDSA65_pss3072
| mldsa65_rsa3072 | 0xfee7 |Yes| OQS_OID_MLDSA65_rsa3072
| mldsa65_p256 | 0xfee8 |Yes| OQS_OID_MLDSA65_p256
| mldsa65_bp256 | 0xfee9 |Yes| OQS_OID_MLDSA65_bp256
| mldsa65_ed25519 | 0xfeea |Yes| OQS_OID_MLDSA65_ed25519
| mldsa65_pss3072 | 0xfee6 |Yes| OQS_CODEPOINT_MLDSA65_pss3072
| mldsa65_rsa3072 | 0xfee7 |Yes| OQS_CODEPOINT_MLDSA65_rsa3072
| mldsa65_p256 | 0xfee8 |Yes| OQS_CODEPOINT_MLDSA65_p256
| mldsa65_bp256 | 0xfee9 |Yes| OQS_CODEPOINT_MLDSA65_bp256
| mldsa65_ed25519 | 0xfeea |Yes| OQS_CODEPOINT_MLDSA65_ed25519
| mldsa87 | 0xfed2 |Yes| OQS_CODEPOINT_MLDSA87
| p521_mldsa87 | 0xfed6 |Yes| OQS_CODEPOINT_P521_MLDSA87
| mldsa87_p384 | 0xfeeb |Yes| OQS_OID_MLDSA87_p384
| mldsa87_bp384 | 0xfeec |Yes| OQS_OID_MLDSA87_bp384
| mldsa87_ed448 | 0xfeed |Yes| OQS_OID_MLDSA87_ed448
| mldsa87_p384 | 0xfeeb |Yes| OQS_CODEPOINT_MLDSA87_p384
| mldsa87_bp384 | 0xfeec |Yes| OQS_CODEPOINT_MLDSA87_bp384
| mldsa87_ed448 | 0xfeed |Yes| OQS_CODEPOINT_MLDSA87_ed448
| falcon512 | 0xfed7 |Yes| OQS_CODEPOINT_FALCON512
| p256_falcon512 | 0xfed8 |Yes| OQS_CODEPOINT_P256_FALCON512
| rsa3072_falcon512 | 0xfed9 |Yes| OQS_CODEPOINT_RSA3072_FALCON512
Expand Down
2 changes: 1 addition & 1 deletion oqs-template/ALGORITHMS.md/ids.fragment
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
| {{ classical_alg['name'] }}_{{variant['name']}} | {{ classical_alg['code_point'] }} | {%- if variant['enable'] -%} Yes {%- else -%} No {%- endif -%} | OQS_CODEPOINT_{{ classical_alg['name']|upper }}_{{ variant['name']|upper }}
{%- endfor %}
{%- for composite_alg in variant['composite'] %}
| {{variant['name']}}_{{ composite_alg['name'] }} | {{ composite_alg['code_point'] }} | {%- if variant['enable'] -%} Yes {%- else -%} No {%- endif -%} | OQS_OID_{{ variant['name']|upper }}_{{ composite_alg['name'] }}
| {{variant['name']}}_{{ composite_alg['name'] }} | {{ composite_alg['code_point'] }} | {%- if variant['enable'] -%} Yes {%- else -%} No {%- endif -%} | OQS_CODEPOINT_{{ variant['name']|upper }}_{{ composite_alg['name'] }}
{%- endfor %}
{%- endfor %}
{%- endfor %}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


/** \brief List of composite signature algorithms. */
const char *kCompositeSignatureAlgorithms[] = {
{% for sig in config['sigs'] %}
{%- for variant in sig['variants'] %}
{%- for composite_alg in variant['composite'] -%}
"{{variant['name']}}_{{ composite_alg['name'] }}",
{%- endfor -%}
{%- endfor %}
{%- endfor %}
NULL,
};

14 changes: 14 additions & 0 deletions test/oqs_test_evp_pkey_params.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@ const char *kHybridSignatureAlgorithms[] = {
};
///// OQS_TEMPLATE_FRAGMENT_HYBRID_SIG_ALGS_END

///// OQS_TEMPLATE_FRAGMENT_COMPOSITE_SIG_ALGS_START

/** \brief List of composite signature algorithms. */
const char *kCompositeSignatureAlgorithms[] = {
"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", NULL,
};
///// OQS_TEMPLATE_FRAGMENT_COMPOSITE_SIG_ALGS_END

///// OQS_TEMPLATE_FRAGMENT_HYBRID_KEM_ALGS_START

/** \brief List of hybrid KEMs. */
Expand Down

0 comments on commit 5e20718

Please sign in to comment.