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

Import SIKE P434 Round-3 code and add basic unit test #252

Merged
merged 7 commits into from
Sep 24, 2021

Conversation

dkostic
Copy link
Contributor

@dkostic dkostic commented Sep 20, 2021

Issues:

CryptoAlg-838

Description of changes:

This PR imports the source code of SIKE from the official repository: https://github.com/microsoft/PQCrypto-SIDH. A basic unit test is also added to verify the functionality of SIKE implementation and the newly added PQ KEM API.

Call-outs:

N/A

Testing:

New unit test added.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.


kem_ctx->kem = kem;

kem_ctx->public_key = OPENSSL_malloc(kem->public_key_length);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dunno what is going on here with spacing, but it looks funny :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I aligned the equal signs, looks nicer to me that way :) if we don't do that in AWS-LC I'll remove the extra space?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol - I'm really indifferent

@@ -0,0 +1,23 @@
// -----------------------------------------------------------------------------
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this file be deleted? Probably we can only use the P434_api.h?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes right now we don't need this file, but when we add another PQ KEM we'll need it because all the KEMs define the same macros with the same names so there would be a collision on the names if we don't define them separately in this file.

pq-crypto/EVP_kem.c Outdated Show resolved Hide resolved
@dkostic dkostic merged commit 5302e2d into aws:integrate-pq Sep 24, 2021
@dkostic dkostic deleted the import_sike branch September 24, 2021 07:31
bbutch pushed a commit to bbutch/aws-lc that referenced this pull request Mar 11, 2022
This PR imports the source code of SIKE from the official repository:
https://github.com/microsoft/PQCrypto-SIDH.

The new EVP APIs for PQ KEMs are also refactored to be more in line
with the existing EVP APIs in the library.

A basic unit test is added to verify the functionality
of SIKE's implementation and the newly added PQ KEM APIs.

Co-authored-by: Dusan Kostic <[email protected]>
bryce-shang pushed a commit that referenced this pull request Mar 11, 2022
This PR imports the source code of SIKE from the official repository:
https://github.com/microsoft/PQCrypto-SIDH.

The new EVP APIs for PQ KEMs are also refactored to be more in line
with the existing EVP APIs in the library.

A basic unit test is added to verify the functionality
of SIKE's implementation and the newly added PQ KEM APIs.

Co-authored-by: Dusan Kostic <[email protected]>
bryce-shang pushed a commit that referenced this pull request Mar 11, 2022
This PR imports the source code of SIKE from the official repository:
https://github.com/microsoft/PQCrypto-SIDH.

The new EVP APIs for PQ KEMs are also refactored to be more in line
with the existing EVP APIs in the library.

A basic unit test is added to verify the functionality
of SIKE's implementation and the newly added PQ KEM APIs.

Co-authored-by: Dusan Kostic <[email protected]>
dkostic added a commit to dkostic/aws-lc that referenced this pull request Aug 23, 2022
This PR imports the source code of SIKE from the official repository:
https://github.com/microsoft/PQCrypto-SIDH.

The new EVP APIs for PQ KEMs are also refactored to be more in line
with the existing EVP APIs in the library.

A basic unit test is added to verify the functionality
of SIKE's implementation and the newly added PQ KEM APIs.

Co-authored-by: Dusan Kostic <[email protected]>
jakemas pushed a commit to jakemas/aws-lc that referenced this pull request Nov 1, 2022
This PR imports the source code of SIKE from the official repository:
https://github.com/microsoft/PQCrypto-SIDH.

The new EVP APIs for PQ KEMs are also refactored to be more in line
with the existing EVP APIs in the library.

A basic unit test is added to verify the functionality
of SIKE's implementation and the newly added PQ KEM APIs.

Co-authored-by: Dusan Kostic <[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.

3 participants