Searched refs:iv_len (Results 1 – 7 of 7) sorted by relevance
| /rk3399_rockchip-uboot/drivers/crypto/rockchip/ |
| H A D | crypto_v2.c | 211 static inline void set_iv_reg(u32 chn, const u8 *iv, u32 iv_len) in set_iv_reg() argument 220 if (!iv || iv_len == 0) in set_iv_reg() 223 write_regs(base_iv, iv, iv_len); in set_iv_reg() 225 crypto_write(iv_len, CRYPTO_CH0_IV_LEN_0 + 4 * chn); in set_iv_reg() 228 static inline void get_iv_reg(u32 chn, u8 *iv, u32 iv_len) in get_iv_reg() argument 234 read_regs(base_iv, iv, iv_len); in get_iv_reg() 901 u32 key_len, const u8 *iv, u32 iv_len, in hw_cipher_init() argument 968 ccm128_set_iv_reg(chn, iv, iv_len); in hw_cipher_init() 970 set_iv_reg(chn, iv, iv_len); in hw_cipher_init() 1165 const u8 *iv, u32 iv_len, u32 mode, bool enc) in hw_aes_init() argument [all …]
|
| H A D | crypto_ce.c | 549 u8 *iv, u32 iv_len, in rkce_build_ccm_aad() argument 564 L = 15 - iv_len; in rkce_build_ccm_aad() 566 ret = hw_crypto_ccm128_setiv(nonce, (u8 *)iv, iv_len, 0); in rkce_build_ccm_aad() 786 memcpy(hw_ctx->td_buf->iv, ctx->iv, ctx->iv_len); in rk_crypto_cipher() 787 hw_ctx->td->ctrl.iv_len = ctx->iv_len; in rk_crypto_cipher() 806 hw_ctx->td_buf->iv, ctx->iv_len, in rk_crypto_cipher() 816 hw_ctx->td->ctrl.iv_len = new_iv_len; in rk_crypto_cipher() 925 cipher_ctx.iv_len = ctx->iv_len; in rockchip_crypto_fw_cipher()
|
| /rk3399_rockchip-uboot/common/spl/ |
| H A D | spl_fit.c | 164 int iv_len; in spl_fit_image_uncipher() local 191 iv = fdt_getprop(fit, cipher_noffset, "iv", &iv_len); in spl_fit_image_uncipher() 197 if (iv_len != key_len) { in spl_fit_image_uncipher() 199 iv_len, key_len, node_name); in spl_fit_image_uncipher() 209 ctx.iv_len = iv_len; in spl_fit_image_uncipher()
|
| /rk3399_rockchip-uboot/include/ |
| H A D | crypto.h | 88 u32 iv_len; member 96 u32 iv_len; member
|
| /rk3399_rockchip-uboot/include/rockchip/ |
| H A D | rkce_core.h | 206 uint32_t iv_len : 5; member 241 uint32_t iv_len : 5; member
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | crypto.c | 42 u32 iv_len; member 120 .iv_len = sizeof(iv_val), \ 139 .iv_len = sizeof(iv_val), \ 538 ctx.iv_len = test_data->iv_len; in test_cipher_result()
|
| /rk3399_rockchip-uboot/common/ |
| H A D | image-fit.c | 1589 int iv_len; in fit_image_uncipher() local 1606 iv = fdt_getprop(fit, cipher_noffset, "iv", &iv_len); in fit_image_uncipher() 1612 if (iv_len != key_len) { in fit_image_uncipher() 1614 iv_len, key_len, node_name); in fit_image_uncipher()
|