Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PQC #374

Draft
wants to merge 7 commits into
base: tls13-prototype
Choose a base branch
from

Conversation

brett-warren-arm
Copy link

@brett-warren-arm brett-warren-arm commented Sep 20, 2021

This is a WIP pull request to add post-quantum cryptography to the key sharing mechanism.

Checklist of things as far as my small mind can see:
- Supported group ext (partially done) [ssl_tls13_client.c, ssl_tls13_server.c]
- Key share ext (partially done) [ssl_tls13_client.c, ssl_tls13_server.c]
- Early data ext (not started) [ssl_tls13_client.c, ssl_tls13_server.c]
- Key schedule changes (not started) [ssl_tls13_keys.c]

Scope of work ends when ephemeral secret is calculated at ssl_tls13_keys.c:985.

Eventually hybrid post-quantum will also be added.

Status

IN DEVELOPMENT

Requires Backporting

NO

Migrations

NO

Todos

  • Tests
  • Documentation
  • Changelog updated
  • Backported

OQS_KEM is a libOQS structure specifying a
KEM algorithm and other associated data. For libOQS
to interoperate with mbedTLS, this commit adds a context
superstructure along with related functions.

Signed-off-by: Brett Warren <[email protected]>
mbedtls_ssl_conf_groups allows supported groups for key
sharing to be configured via their IANA NamedGroup ID.

This is added in anticipation of PQC and Hybrid key
sharing algorithms being integrated into Mbed TLS.

mbedtls_ssl_conf_curves is deprecated in favor of
mbedtls_ssl_conf_groups. handshake_init has been
modified to translate and copy curves configured
via conf_curves into a heap allocatied array of
NamedGroup IDs. This allows the refactoring of code
interacting with conf_curve related variables (such
as curve_list) to use NamedGroup IDs while retaining
the deprecated API.

Signed-off-by: Brett Warren <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant