libckteec: Fix return value for wrong size CK_ULONG

We should return CKR_ATTRIBUTE_VALUE_INVALID to indicate that value is
incorrect.

CKR_ATTRIBUTE_TYPE_INVALID is used to indicate that unknown attribute was
provided.

Specified in:
PKCS #11 Cryptographic Token Interface Base Specification
Version 2.40 Plus Errata 01
4.1.1 Creating objects

"2. If the supplied template specifies an invalid value for a valid
attribute, then the attempt should fail with the error code
CKR_ATTRIBUTE_VALUE_INVALID."

Signed-off-by: Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
1 file changed
tree: 591c1770be73bc148dfbde4fe427d40ca69ff711
  1. libckteec/
  2. libteec/
  3. public/
  4. scripts/
  5. tee-supplicant/
  6. .gitattributes
  7. .gitignore
  8. .travis.yml
  9. Android.mk
  10. android_flags.mk
  11. CMakeLists.txt
  12. CMakeToolchain.txt
  13. config.mk
  14. flags.mk
  15. LICENSE
  16. Makefile
  17. README.md
  18. typedefs.checkpatch
README.md

OP-TEE Client API

This git contains source code for the non-secure side implementation of the OP-TEE project making up the client library and tee-supplicant.

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_client.

// OP-TEE core maintainers