Skip to content

Commit

Permalink
update oqsprov_capabilities.c
Browse files Browse the repository at this point in the history
Signed-off-by: Pravek Sharma <[email protected]>
  • Loading branch information
praveksharma committed Aug 7, 2024
1 parent 034d769 commit 7dcb544
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 68 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
{%- set cnt.val = cnt.val + 1 %}
if (getenv("OQS_CODEPOINT_{{ hybrid['hybrid_group']|upper }}_{{ kem['name_group']|upper }}")) oqs_group_list[{{ cnt.val }}].group_id = atoi(getenv("OQS_CODEPOINT_{{ hybrid['hybrid_group']|upper }}_{{ kem['name_group']|upper }}"));
{%- endfor %}
{%- for composite_alg in kem['composite'] %}
{%- set cnt.val = cnt.val + 1 %}
if (getenv("OQS_CODEPOINT_{{ kem['name_group']|upper }}_{{ composite_alg['name']|upper }}")) oqs_group_list[{{ cnt.val }}].group_id = atoi(getenv("OQS_CODEPOINT_{{ kem['name_group']|upper }}_{{ composite_alg['name']|upper }}"));
{%- endfor %}
{%- endfor %}
{% set cnt = namespace(val=-1) %}
{%- for sig in config['sigs'] %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{% for kem in config['kems'] %}
{ {{ kem['nid'] }}, {{ kem['bit_security'] }}, TLS1_3_VERSION, 0, -1, -1, 1 },
{% for hybrid in kem['hybrids'] %}
{%- for hybrid in kem['hybrids'] %}
{ {{ hybrid['nid'] }}, {{ kem['bit_security'] }}, TLS1_3_VERSION, 0, -1, -1, 1 },
{%- endfor %}
{%- for composite_alg in kem['composite'] %}
{ {{ composite_alg['nid'] }}, {{ composite_alg['bit_security'] }}, TLS1_3_VERSION, 0, -1, -1, 1 },
{%- endfor %}
{%- endfor %}

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
{% for hybrid in kem['hybrids'] %}
{%- set cnt.val = cnt.val + 1 %}
OQS_GROUP_ENTRY({{hybrid['hybrid_group']}}_{{kem['name_group']}}, {{hybrid['hybrid_group']}}_{{kem['name_group']}}, {{hybrid['hybrid_group']}}_{{kem['name_group']}}, {{ cnt.val }}),

{%- endfor %}
{% for composite_alg in kem['composite'] %}
{%- set cnt.val = cnt.val + 1 %}
OQS_GROUP_ENTRY({{kem['name_group']}}_{{composite_alg['name']}}, {{kem['name_group']}}_{{composite_alg['name']}}, {{kem['name_group']}}_{{composite_alg['name']}}, {{ cnt.val }}),
{%- endfor %}
#endif
{%- endfor %}
Expand Down
Loading

0 comments on commit 7dcb544

Please sign in to comment.