Home
last modified time | relevance | path

Searched refs:ce_mode (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/crypto/rockchip/
H A Dcrypto_ce.c661 static int rk_get_cipher_cemode(u32 algo, u32 mode, u32 *ce_algo, u32 *ce_mode) in rk_get_cipher_cemode() argument
681 *ce_mode = rk_cipher_algo_map[i].rkce; in rk_get_cipher_cemode()
689 u32 rk_get_td_keysize(u32 ce_algo, u32 ce_mode, u32 key_len) in rk_get_td_keysize() argument
708 u32 ce_algo, u32 ce_mode, cipher_context *ctx) in rk_set_symm_td_buf_key() argument
713 if (ce_mode == RKCE_SYMM_MODE_XTS) { in rk_set_symm_td_buf_key()
757 u32 ce_algo = 0, ce_mode = 0; in rk_crypto_cipher() local
766 ret = rk_get_cipher_cemode(ctx->algo, ctx->mode, &ce_algo, &ce_mode); in rk_crypto_cipher()
779 hw_ctx->td->ctrl.symm_mode = ce_mode; in rk_crypto_cipher()
780 hw_ctx->td->ctrl.key_size = rk_get_td_keysize(ce_algo, ce_mode, ctx->key_len); in rk_crypto_cipher()
790 ret = rk_set_symm_td_buf_key(hw_ctx->td_buf, ce_algo, ce_mode, ctx); in rk_crypto_cipher()
[all …]