-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
pkcs11_1021 fails when OP-TEE core is configured with MBedTLS #5418
Comments
There is still no any solution/workaround for this? Got the same in three tests:
|
Issue still present, but will not be applicable anymore if we decide to remove support for MBedTLS in the core as suggested in jenswi-linaro#11. |
I cannot reproduce the issue initially described here, running I also see that FYI regarding xtest results when core is built with mbedtls as crypto lib, I found no other issue but the 2 mention in this comment when running xtest regression+pkcs11+pg tests. |
Test platform QEMUv8 with
make CFG_CRYPTOLIB_NAME=mbedtls CFG_CRYPTOLIB_DIR=lib/libmbedtls run
:Secure console has:
0xc0000630
isTEE_ATTR_RSA_EXPONENT1
which is one of the RSA CRT parameters, optional as per the GP spec.With this patch:
...the following stack trace is produced:
...which makes me think the bug is in the PKCS#11 TA which doesn't expect the attribute to be absent (actually,
TEE_GetObjectBufferAttribute()
returnsTEE_SUCCESS
withsz == 0
which would indicateTEE_ATTR_RSA_EXPONENT1
is present but equal to zero? weird... but in any case we don't have a non-zero attribute so the code inalloc_get_tee_attribute_data()
looks wrong).@etienne-lms any idea?
The text was updated successfully, but these errors were encountered: