My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Macros | Enumerations
otz_id.h File Reference

Go to the source code of this file.

Macros

#define SMC_ENOMEM   7
 
#define SMC_EOPNOTSUPP   6
 
#define SMC_EINVAL_ADDR   5
 
#define SMC_EINVAL_ARG   4
 
#define SMC_ERROR   3
 
#define SMC_INTERRUPTED   2
 
#define SMC_PENDING   1
 
#define SMC_SUCCESS   0
 
#define MD5_OUTPUT_LEN   16
 
#define SHA1_OUTPUT_LEN   20
 
#define SHA224_OUTPUT_LEN   28
 
#define SHA256_OUTPUT_LEN   32
 
#define SHA384_OUTPUT_LEN   48
 
#define SHA512_OUTPUT_LEN   64
 
#define HMAC_KEY_LEN   16
 
#define HMAC_DATA_LEN   50
 
#define HMAC_OUTPUT_LEN   16
 
#define AES_128_CBC_LEN   16
 
#define AES_128_ECB_LEN   16
 
#define AES_128_CTR_LEN   16
 
#define AES_128_XTS_LEN   16
 
#define DES_ECB_LEN   8
 
#define DES_CBC_LEN   8
 
#define DES3_CBC_LEN   8
 
#define DES3_ECB_LEN   8
 
#define CIPHER_ENCRYPT   2
 
#define CIPHER_DECRYPT   1
 
#define IGNORE_PARAM   0xff
 

Enumerations

enum  otz_enc_data_type {
  OTZ_ENC_INVALID_TYPE = 0, OTZ_ENC_UINT32, OTZ_ENC_ARRAY, OTZ_MEM_REF,
  OTZ_SECURE_MEM_REF
}
 Encoding data type. More...
 
enum  otz_svc_id {
  OTZ_SVC_INVALID = 0x0, OTZ_SVC_GLOBAL, OTZ_SVC_ECHO, OTZ_SVC_DRM,
  OTZ_SVC_CRYPT, OTZ_SVC_MUTEX_TEST, OTZ_SVC_VIRTUAL_KEYBOARD
}
 Service identifiers. More...
 
enum  otz_global_cmd_id {
  OTZ_GLOBAL_CMD_ID_INVALID = 0x0, OTZ_GLOBAL_CMD_ID_BOOT_ACK, OTZ_GLOBAL_CMD_ID_OPEN_SESSION, OTZ_GLOBAL_CMD_ID_CLOSE_SESSION,
  OTZ_GLOBAL_CMD_ID_RESUME_ASYNC_TASK, OTZ_GLOBAL_CMD_ID_UNKNOWN = 0x7FFFFFFE, OTZ_GLOBAL_CMD_ID_MAX = 0x7FFFFFFF
}
 Command ID's for global service. More...
 
enum  otz_crypt_cmd_id {
  OTZ_CRYPT_CMD_ID_INVALID = 0x0, OTZ_CRYPT_CMD_ID_LOAD_LIBS, OTZ_CRYPT_CMD_ID_UNLOAD_LIBS, OTZ_CRYPT_CMD_ID_ENCRYPT,
  OTZ_CRYPT_CMD_ID_DECRYPT, OTZ_CRYPT_CMD_ID_MD5, OTZ_CRYPT_CMD_ID_SHA1, OTZ_CRYPT_CMD_ID_SHA224,
  OTZ_CRYPT_CMD_ID_SHA256, OTZ_CRYPT_CMD_ID_SHA384, OTZ_CRYPT_CMD_ID_SHA512, OTZ_CRYPT_CMD_ID_HMAC_MD5,
  OTZ_CRYPT_CMD_ID_HMAC_SHA1, OTZ_CRYPT_CMD_ID_HMAC_SHA224, OTZ_CRYPT_CMD_ID_HMAC_SHA256, OTZ_CRYPT_CMD_ID_HMAC_SHA384,
  OTZ_CRYPT_CMD_ID_HMAC_SHA512, OTZ_CRYPT_CMD_ID_CIPHER_AES_128_CBC, OTZ_CRYPT_CMD_ID_CIPHER_AES_128_ECB, OTZ_CRYPT_CMD_ID_CIPHER_AES_128_CTR,
  OTZ_CRYPT_CMD_ID_CIPHER_AES_128_XTS, OTZ_CRYPT_CMD_ID_CIPHER_DES_ECB, OTZ_CRYPT_CMD_ID_CIPHER_DES_CBC, OTZ_CRYPT_CMD_ID_CIPHER_DES3_ECB,
  OTZ_CRYPT_CMD_ID_CIPHER_DES3_CBC, OTZ_CRYPT_CMD_ID_UNKNOWN = 0x7FFFFFFE, OTZ_CRYPT_CMD_ID_MAX = 0x7FFFFFFF
}
 Enums used for crypto service task. More...
 
enum  open_tz_mutex_test_cmd_id { OTZ_MUTEX_TEST_CMD_ID_INVALID = 0x0, OTZ_MUTEX_TEST_CMD_ID_TEST, OTZ_MUTEX_TEST_CMD_ID_UNKNOWN = 0x7FFFFFFE, OTZ_MUTEX_TEST_CMD_ID_MAX = 0x7FFFFFFF }
 Enums used for mutex test task. More...
 
enum  otz_echo_cmd_id {
  OTZ_ECHO_CMD_ID_INVALID = 0x0, OTZ_ECHO_CMD_ID_SEND_CMD, OTZ_ECHO_CMD_ID_SEND_CMD_SHARED_BUF, OTZ_ECHO_CMD_ID_SEND_CMD_ARRAY_SPACE,
  OTZ_ECHO_CMD_ID_IPI_SEND_CMD, OTZ_ECHO_CMD_ID_UNKNOWN = 0x7FFFFFFE, OTZ_ECHO_CMD_ID_MAX = 0x7FFFFFFF
}
 Enums used for echo service task. More...
 
enum  otz_virtual_keyboard_cmd_id { OTZ_VIRTUAL_KEYBOARD_CMD_ID_INVALID = 0x0, OTZ_VIRTUAL_CMD_ID_PLAY_MEDIA, OTZ_VIRTUAL_KEYBOARD_CMD_ID_SHOW }
 
enum  otz_drm_cmd_id { OTZ_DRM_CMD_ID_INVALID = 0x0, OTZ_DRM_CMD_ID_SEND_CMD, OTZ_DRM_CMD_ID_SEND_CMD_SHARED_BUF }
 

Macro Definition Documentation

#define AES_128_CBC_LEN   16
#define AES_128_CTR_LEN   16
#define AES_128_ECB_LEN   16
#define AES_128_XTS_LEN   16
#define CIPHER_DECRYPT   1
#define CIPHER_ENCRYPT   2
#define DES3_CBC_LEN   8
#define DES3_ECB_LEN   8
#define DES_CBC_LEN   8
#define DES_ECB_LEN   8
#define HMAC_DATA_LEN   50
#define HMAC_KEY_LEN   16
#define HMAC_OUTPUT_LEN   16
#define IGNORE_PARAM   0xff
#define MD5_OUTPUT_LEN   16
#define SHA1_OUTPUT_LEN   20
#define SHA224_OUTPUT_LEN   28
#define SHA256_OUTPUT_LEN   32
#define SHA384_OUTPUT_LEN   48
#define SHA512_OUTPUT_LEN   64
#define SMC_EINVAL_ADDR   5
#define SMC_EINVAL_ARG   4
#define SMC_ENOMEM   7
#define SMC_EOPNOTSUPP   6
#define SMC_ERROR   3
#define SMC_INTERRUPTED   2
#define SMC_PENDING   1
#define SMC_SUCCESS   0

Enumeration Type Documentation

Enums used for mutex test task.

Enumerator
OTZ_MUTEX_TEST_CMD_ID_INVALID 
OTZ_MUTEX_TEST_CMD_ID_TEST 
OTZ_MUTEX_TEST_CMD_ID_UNKNOWN 
OTZ_MUTEX_TEST_CMD_ID_MAX 

Enums used for crypto service task.

Enumerator
OTZ_CRYPT_CMD_ID_INVALID 
OTZ_CRYPT_CMD_ID_LOAD_LIBS 
OTZ_CRYPT_CMD_ID_UNLOAD_LIBS 
OTZ_CRYPT_CMD_ID_ENCRYPT 
OTZ_CRYPT_CMD_ID_DECRYPT 
OTZ_CRYPT_CMD_ID_MD5 
OTZ_CRYPT_CMD_ID_SHA1 
OTZ_CRYPT_CMD_ID_SHA224 
OTZ_CRYPT_CMD_ID_SHA256 
OTZ_CRYPT_CMD_ID_SHA384 
OTZ_CRYPT_CMD_ID_SHA512 
OTZ_CRYPT_CMD_ID_HMAC_MD5 
OTZ_CRYPT_CMD_ID_HMAC_SHA1 
OTZ_CRYPT_CMD_ID_HMAC_SHA224 
OTZ_CRYPT_CMD_ID_HMAC_SHA256 
OTZ_CRYPT_CMD_ID_HMAC_SHA384 
OTZ_CRYPT_CMD_ID_HMAC_SHA512 
OTZ_CRYPT_CMD_ID_CIPHER_AES_128_CBC 
OTZ_CRYPT_CMD_ID_CIPHER_AES_128_ECB 
OTZ_CRYPT_CMD_ID_CIPHER_AES_128_CTR 
OTZ_CRYPT_CMD_ID_CIPHER_AES_128_XTS 
OTZ_CRYPT_CMD_ID_CIPHER_DES_ECB 
OTZ_CRYPT_CMD_ID_CIPHER_DES_CBC 
OTZ_CRYPT_CMD_ID_CIPHER_DES3_ECB 
OTZ_CRYPT_CMD_ID_CIPHER_DES3_CBC 
OTZ_CRYPT_CMD_ID_UNKNOWN 
OTZ_CRYPT_CMD_ID_MAX 
Enumerator
OTZ_DRM_CMD_ID_INVALID 
OTZ_DRM_CMD_ID_SEND_CMD 
OTZ_DRM_CMD_ID_SEND_CMD_SHARED_BUF 

Enums used for echo service task.

Enumerator
OTZ_ECHO_CMD_ID_INVALID 
OTZ_ECHO_CMD_ID_SEND_CMD 
OTZ_ECHO_CMD_ID_SEND_CMD_SHARED_BUF 
OTZ_ECHO_CMD_ID_SEND_CMD_ARRAY_SPACE 
OTZ_ECHO_CMD_ID_IPI_SEND_CMD 
OTZ_ECHO_CMD_ID_UNKNOWN 
OTZ_ECHO_CMD_ID_MAX 

Encoding data type.

Enumerator
OTZ_ENC_INVALID_TYPE 
OTZ_ENC_UINT32 
OTZ_ENC_ARRAY 
OTZ_MEM_REF 
OTZ_SECURE_MEM_REF 

Command ID's for global service.

Enumerator
OTZ_GLOBAL_CMD_ID_INVALID 
OTZ_GLOBAL_CMD_ID_BOOT_ACK 
OTZ_GLOBAL_CMD_ID_OPEN_SESSION 
OTZ_GLOBAL_CMD_ID_CLOSE_SESSION 
OTZ_GLOBAL_CMD_ID_RESUME_ASYNC_TASK 
OTZ_GLOBAL_CMD_ID_UNKNOWN 
OTZ_GLOBAL_CMD_ID_MAX 
enum otz_svc_id

Service identifiers.

Enumerator
OTZ_SVC_INVALID 
OTZ_SVC_GLOBAL 
OTZ_SVC_ECHO 
OTZ_SVC_DRM 
OTZ_SVC_CRYPT 
OTZ_SVC_MUTEX_TEST 
OTZ_SVC_VIRTUAL_KEYBOARD 
Enumerator
OTZ_VIRTUAL_KEYBOARD_CMD_ID_INVALID 
OTZ_VIRTUAL_CMD_ID_PLAY_MEDIA 
OTZ_VIRTUAL_KEYBOARD_CMD_ID_SHOW