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

Reuse EVP_HPKE_KEY when using BoringSSLOHttpCryptoProvider.setupHPKEB… #23

Merged
merged 2 commits into from
Jan 21, 2024

Conversation

normanmaurer
Copy link
Member

…aseR(...)

Motivation:

When we generate the BoringSSLAsymmetricCipherKeyPair we can also just store the EVP_HPE_KEY in the object and so use it directly when setupHPKEBaseR(...) is used. This will make things cheaper.

Modifications:

Store the pointer to EVP_HPE_KEY in BoringSSLAsymmetricCipherKeyPair and use a PhantomReference to free it later.

Result:

Less overhead

@normanmaurer normanmaurer requested a review from thomdev December 22, 2023 16:57
@normanmaurer normanmaurer added this to the 0.0.4.Final milestone Dec 22, 2023
Copy link
Collaborator

@thomdev thomdev left a comment

Choose a reason for hiding this comment

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

LGTM

…aseR(...)

Motivation:

When we generate the BoringSSLAsymmetricCipherKeyPair we can also just store the EVP_HPE_KEY in the object and so use it directly when setupHPKEBaseR(...) is used.
This will make things cheaper.

Modifications:

Store the pointer to EVP_HPE_KEY in BoringSSLAsymmetricCipherKeyPair and use a PhantomReference to free it later.

Result:

Less overhead
@normanmaurer normanmaurer merged commit d168162 into main Jan 21, 2024
9 checks passed
@normanmaurer normanmaurer deleted the key branch January 21, 2024 18:32
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.

2 participants