Crypto Service TISCI Description¶
This chapter provides information on System Firmware API for Cryptographic Services. The available API are listed below.
TISCI Message ID | Message Name | Available in GP | Available in HS-FS | Available in HS-SE | Previous Message Name |
---|---|---|---|---|---|
0x9040 | TISCI_MSG_CRYPTO_AES_ENCRYPT | NO | YES | YES | TISCI_MSG_SA2UL_AES_ENCRYPT |
0x9041 | TISCI_MSG_CRYPTO_AES_DECRYPT | NO | YES | YES | TISCI_MSG_SA2UL_AES_DECRYPT |
Note
The TISCI Message ID macros have been renamed. Please update your code to use the new names.
API Description¶
Request and Response structures¶
struct csp_aes_opn_req_data {
u32 ctx_address_lo;
u32 ctx_address_hi;
}
struct csp_aes_opn_resp_data {
u8 tag[16];
}
TISCI Message ID¶
TISCI_MSG_CRYPTO_AES_ENCRYPT (0x9040U)
Message to encrypt a blob
struct tisci_csp_aes_req
Request for encryption/decryption
Parameter | Type | Description |
---|---|---|
hdr | struct tisci_header | tisci header |
aes_req | struct csp_aes_opn_req_data | Structure containing context address |
struct tisci_csp_aes_resp
Response of the encryption/decryption process
Parameter | Type | Description |
---|---|---|
hdr | struct tisci_header | tisci header |
aes_resp | struct csp_aes_opn_resp_data | Structure containing service response |
TISCI Message ID¶
TISCI_MSG_CRYPTO_AES_DECRYPT (0x9041U)
Message to decrypt a blob
struct tisci_csp_aes_req
Request for encryption/decryption
Parameter | Type | Description |
---|---|---|
hdr | struct tisci_header | tisci header |
aes_req | struct csp_aes_opn_req_data | Structure containing context address |
struct tisci_csp_aes_resp
Response of the encryption/decryption process
Parameter | Type | Description |
---|---|---|
hdr | struct tisci_header | tisci header |
aes_resp | struct csp_aes_opn_resp_data | Structure containing service response |