Cryto 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
0x9040 TISCI_MSG_SA2UL_AES_ENCRYPT NO YES YES
0x9041 TISCI_MSG_SA2UL_AES_DECRYPT NO YES YES

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_MSG_SA2UL_AES_ENCRYPT - Encrypt a blob

Usage:

Message Type Normal
Secure Queue Only? Yes

TISCI Message ID

TISCI_MSG_SA2UL_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_MSG_SA2UL_AES_DECRYPT - Decrypt a blob

Usage:

Message Type Normal
Secure Queue Only? Yes

TISCI Message ID

TISCI_MSG_SA2UL_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