uadk_provider: asynchronous SEC switching to software computing is supported#257
Merged
Conversation
warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses]. Signed-off-by: Weili Qian <qianweili@huawei.com>
After calling the asynchronous interface to send a request, if the return value is not 0, -WD_HW_EACCESS, or -EBUSY, it is considered that the request was sent successfully. In this case, the request receiving operation continues, which may cause a request receiving timeout. Therefore, add checks for other return values. Signed-off-by: Weili Qian <qianweili@huawei.com>
… sending When the request is sent successfully but cnt is greater than PROV_SEND_MAX_CNT, it will be considered timeout. Modify this to first check if the operation was successful, and if it was, exit the loop and wait for the request reception to complete. Signed-off-by: Weili Qian <qianweili@huawei.com>
…ry function 1. Replace BN_bn2bin with BN_bn2binpad in ECDH exchange to prevent zero value of x. 2. Implement dedicated query_operation_name for RSA-PSS mode instead of reusing RSA's. Signed-off-by: lizhi <lizhi206@huawei.com>
…pported Currently, when an SEC device fails to be initialized, the asynchronous test case fails to be executed. This issue is resolved so that the asynchronous scenario can now switch from the hardware calculation to the software calculation after the hardware calculation fails. Signed-off-by: Zhushuai Yin <yinzhushuai@huawei.com>
…upported Currently, when the input size of the AEAD algorithm is 0 or greater than 65535, the software algorithm is used only in synchronous mode. In asynchronous mode, the algorithm fails to be switched to the software algorithm. This modification supports asynchronous switching to the software algorithm. Signed-off-by: Zhushuai Yin <yinzhushuai@huawei.com>
…ameter checks Add RSA input length validation to ensure input data size is less than modulus. Remove unsupported RSA-PSS padding mode in encryption/decryption scenarios. 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.
No description provided.