Skip to main content

TEE_CipherInit

Function TEE_CipherInit 

Source
#[unsafe(no_mangle)]
pub extern "C" fn TEE_CipherInit( operation: *mut TEE_OperationHandle, iv: *const c_void, iv_len: usize, )
Expand description

初始化加密操作

§参数

  • operation - 操作句柄
  • iv - 初始化向量(IV)
  • iv_len - 初始化向量长度

§注意

  • ECB 模式的加密算法不能使用初始化向量
  • 操作必须已设置密钥