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

TKSS-1044: Provide one-shot native crypto implementations #1045

Merged
merged 1 commit into from
Jan 14, 2025

Conversation

johnshajiang
Copy link
Collaborator

Currently, the native crypto implementation contains multiple steps, including creating native context, doing update operation, doing final operation and free the native context finally.
The native resource is freeing via GC.
This way may consume much more GC time when many native objects are managed by the reference queue.

Supply an additional native crypto provider for short data, and all the above crypto operations are done in a single function.
So, it is unnecessary to manage the native resource via GC.

This PR will resolves #1044.

@johnshajiang johnshajiang added the feat New feature or request label Jan 14, 2025
@johnshajiang johnshajiang self-assigned this Jan 14, 2025
@johnshajiang johnshajiang merged commit 34e1150 into Tencent:master Jan 14, 2025
11 checks passed
@johnshajiang johnshajiang deleted the TKSS-1044 branch January 14, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide one-shot native crypto implementations
1 participant