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

cryptomb: reduce memory copy in ECDSA #33201

Merged
merged 5 commits into from
Apr 1, 2024

Conversation

zhxie
Copy link
Contributor

@zhxie zhxie commented Mar 29, 2024

Signed-off-by: Xie Zhihao [email protected]

Commit Message: cryptomb: reduce memory copy in ECDSA
Additional Description:

The original implementation serializes signatures into a temporary output buffer during processing phase and then copy to the BoringSSL buffer in the completion phase. This patch change the way and directly serializes signatures to the BoringSSL buffer.

In addition, the patch adds a speed test to track the performance change by mathematical implementation of private key provider.

Risk Level: Low
Testing: N/A
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: Requires AVX512 or equivalent CPU instruction set

@zhxie zhxie requested a review from soulxu as a code owner March 29, 2024 06:31
@zhxie
Copy link
Contributor Author

zhxie commented Mar 29, 2024

/assign @soulxu

@zhxie
Copy link
Contributor Author

zhxie commented Mar 29, 2024

/retest

Copy link
Member

@soulxu soulxu left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@soulxu soulxu merged commit 52335d2 into envoyproxy:main Apr 1, 2024
51 checks passed
@zhxie zhxie deleted the cmb-ecdsa-reduce-memcpy-speedtest branch April 2, 2024 00:59
alyssawilk pushed a commit to alyssawilk/envoy that referenced this pull request Apr 29, 2024
* cryptomb: reduce memory copy in ECDSA

The original implementation serializes signatures into a temporary output buffer during processing phase and then copy to the BoringSSL buffer in the completion phase. This patch change the way and directly serializes signatures to the BoringSSL buffer.

In addition, the patch adds a speed test to track the performance change by mathematical implementation of private key provider.

Risk Level: Low
Testing: N/A
Docs Changes: N/A
Release Notes: N/A
Platform Specific Features: Requires AVX512 or equivalent CPU instruction set

Signed-off-by: Xie Zhihao <[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.

2 participants