Skip to content
Commit aa3dd58d authored by Ruchika Gupta's avatar Ruchika Gupta Committed by Jérôme Forissier
Browse files

libckteec: Allow 0 length input buffer for update operations.



If a valid input buffer with size 0 is passed in an update
operation like C_SignUpdate()/C_VerifyUpdate()/C_EncryptUpdate()/
C_DecryptUpdate(), current implementation return error
CKR_BAD_ARGUMENTS. This is actually not an error scenario.
Ideally, we should not perform any cryptographic operation
and return CKR_OK if other parameters are valid. Hence register
a shared memory buffer in such scenarios also and pass it to the TA.

Suggested-by: default avatarEtienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: default avatarRuchika Gupta <ruchika.gupta@linaro.org>
Reviewed-by: default avatarEtienne Carriere <etienne.carriere@linaro.org>
Acked-by: Jens Wiklander's avatarJens Wiklander <jens.wiklander@linaro.org>
parent 3f44b870
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment