Lines Matching refs:twk_key
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()
1280 const u8 *key, const u8 *twk_key, u32 key_len, in rk_crypto_sm4() argument
1286 ret = hw_sm4_init(0, key, twk_key, key_len, iv, iv_len, mode, enc); in rk_crypto_sm4()
1307 ctx->key, ctx->twk_key, ctx->key_len, in rockchip_crypto_cipher()
1312 ctx->key, ctx->twk_key, ctx->key_len, in rockchip_crypto_cipher()