Skip to content

uadk_provider: asynchronous SEC switching to software computing is supported#257

Merged
lin755 merged 7 commits into
Linaro:masterfrom
patch-king:master
May 11, 2026
Merged

uadk_provider: asynchronous SEC switching to software computing is supported#257
lin755 merged 7 commits into
Linaro:masterfrom
patch-king:master

Conversation

@patch-king
Copy link
Copy Markdown

No description provided.

Weili Qian and others added 7 commits May 9, 2026 17:24
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>
@qwl731
Copy link
Copy Markdown
Collaborator

qwl731 commented May 11, 2026

/lgtm

@lin755 lin755 merged commit abb65c4 into Linaro:master May 11, 2026
2 checks passed
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.

3 participants