xtest: pkcs11: Correct template for secret key

When creating object of type CKO_GENERIC_SECRET using
C_CreateObject(), CKA_VALUE is mandatory attribute in the
template and CKA_VALUE_LENGTH should not be provided. This
check was added in the implementation recently so the template
need to be corrected.

Also add an additional check to confirm that CKA_VALUE_LENGTH
gets populated correctly by the TA when such objects are created.

Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org>
1 file changed
tree: ea9dfb6f57e69fccb3009325e0d25576d24fdfc2
  1. .github/
  2. cert/
  3. host/
  4. scripts/
  5. ta/
  6. .gitignore
  7. Android.mk
  8. CMakeLists.txt
  9. CMakeToolchain.txt
  10. LICENSE.md
  11. Makefile
  12. README.md
  13. typedefs.checkpatch
README.md

OP-TEE sanity testsuite

This git contains source code for the test suite (xtest) used to test the OP-TEE project.

All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_test.

// OP-TEE core maintainers