[PATCH 0/4] uadk_provider: several improvements and fixes#260
Merged
Conversation
Set rsa signature hash flag, this flag is cleared by their Init function, and set again by their Final function. Signed-off-by: Weili Qian <qianweili@huawei.com>
Add explicit outsize check to ensure the output buffer is large enough before proceeding with RSA encryption operation. Signed-off-by: Weili Qian <qianweili@huawei.com>
…size Remove the soft field from PROV_RSA_SIG_CTX and PROV_RSA_ASYM_CTX to ensure structure size consistency with the default provider, which is required for proper context duplication via dupctx callback. UADK-specific initialization is performed before session allocation to compensate for the removed field. Signed-off-by: Weili Qian <qianweili@huawei.com>
…oc_sess Return UADK_P_FAIL when sess allocation fails in ec_alloc_sess. Signed-off-by: lizhi <lizhi206@huawei.com>
Collaborator
|
/lgtm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From: Weili Qian <qianweili@huawei.com>
*** BLURB HERE ***
Weili Qian (3):
uadk_provider: set rsa sign hash flag
uadk_provider: add outsize check in uadk_asym_cipher_rsa_encrypt
uadk_provider: remove soft field to match default provider structure
size
lizhi (1):
uadk_provider: fix return UADK_P_FAIL when alloc sess fails in
ec_alloc_sess
src/uadk_prov_ec_kmgmt.c | 2 +-
src/uadk_prov_rsa.c | 9 ++++--
src/uadk_prov_rsa.h | 1 -
src/uadk_prov_rsa_enc.c | 35 ++++++++++++----------
src/uadk_prov_rsa_kmgmt.c | 6 ----
src/uadk_prov_rsa_sign.c | 61 ++++++++++++++++++++++++++++-----------
6 files changed, 72 insertions(+), 42 deletions(-)
--
2.43.0