Searched refs:twk_key (Results 1 – 4 of 4) sorted by relevance
| /rk3399_rockchip-uboot/drivers/crypto/rockchip/ |
| H A D | crypto_v2.c | 900 static int hw_cipher_init(u32 chn, const u8 *key, const u8 *twk_key, in hw_cipher_init() argument 964 write_key_reg(key_chn_sel + 4, twk_key, key_len); in hw_cipher_init() 1164 static int hw_aes_init(u32 chn, const u8 *key, const u8 *twk_key, u32 key_len, in hw_aes_init() argument 1186 if (!key || !twk_key) in hw_aes_init() 1195 return hw_cipher_init(chn, key, twk_key, key_len, iv, iv_len, in hw_aes_init() 1199 static int hw_sm4_init(u32 chn, const u8 *key, const u8 *twk_key, u32 key_len, in hw_sm4_init() argument 1218 if (!key || !twk_key) in hw_sm4_init() 1222 return hw_cipher_init(chn, key, twk_key, key_len, iv, iv_len, in hw_sm4_init() 1259 const u8 *key, const u8 *twk_key, u32 key_len, in rk_crypto_aes() argument 1271 ret = hw_aes_init(0, key, twk_key, key_len, iv, iv_len, mode, enc); in rk_crypto_aes() [all …]
|
| H A D | crypto_ce.c | 715 memcpy(td_buf->key2, ctx->twk_key, ctx->key_len); in rk_set_symm_td_buf_key()
|
| /rk3399_rockchip-uboot/cmd/ |
| H A D | crypto.c | 39 const u8 *twk_key; member 117 .twk_key = (key2), \ 535 ctx.twk_key = test_data->twk_key; in test_cipher_result()
|
| /rk3399_rockchip-uboot/include/ |
| H A D | crypto.h | 85 const u8 *twk_key; member
|