Crypto Service TISCI Description

This chapter provides information on System Firmware API for Cryptographic Services. The available APIs are listed below.

Note

This document should be read alongside Cryptographic Services

TISCI Message ID Message Name Available in GP Available in HS-FS Previous Message Name
0x9040 TISCI_MSG_CRYPTO_AES_ENCRYPT NO YES TISCI_MSG_SA2UL_AES_ENCRYPT
0x9041 TISCI_MSG_CRYPTO_AES_DECRYPT NO 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

Request for encryption/decryption

Parameter Type Description
ctx_address_lo u32 Lower 32-bit memory location of the context
ctx_address_hi u32 Higher 32-bit memory location of the context

struct csp_aes_opn_resp_data

Response of the encryption/decryption process

Parameter Type Description
tag u8 The tag obtained during encyption/decryption

TISCI_MSG_CRYPTO_AES_ENCRYPT - Encrypt a blob

Usage:

Message Type Normal
Secure Queue Only? No

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_MSG_CRYPTO_AES_DECRYPT - Decrypt a blob

Usage:

Message Type Normal
Secure Queue Only? No

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