Skip to main content

TEE_AEInit

Function TEE_AEInit 

Source
#[unsafe(no_mangle)]
pub extern "C" fn TEE_AEInit( operation: *mut TEE_OperationHandle, nonce: *const c_void, nonce_len: usize, tag_len: u32, aad_len: usize, payload_len: usize, ) -> TEE_Result
Expand description

初始化 AE (Authenticated Encryption) 操作

§参数

  • operation - 操作句柄
  • nonce - 随机数/初始化向量指针
  • nonce_len - 随机数长度
  • tag_len - 认证标签长度(以位为单位)
  • aad_len - 附加认证数据长度
  • payload_len - 载荷数据长度

§返回值

  • TEE_SUCCESS - 成功
  • TEE_ERROR_BAD_PARAMETERS - 参数错误
  • TEE_ERROR_NOT_SUPPORTED - 不支持的操作