security: add new result in security hal
if user request the key with wrong type then SE returns
HAL_BAD_KEY_TYPE.
@@ -36,6 +36,7 @@ typedef enum {
HAL_EMPTY_SLOT,
HAL_BAD_KEY, // only public key can be returned
HAL_BAD_KEY_PAIR, // public and private keys do not match
+ HAL_BAD_KEY_TYPE, // the type when key was set and the type to get key are not matched.
HAL_BAD_CERT,
HAL_BAD_CERTKEY_PAIR, // certificate and key do not match
HAL_NOT_ENOUGH_MEMORY,
