Lines Matching refs:twk_key
860 static int hw_cipher_init(u32 chn, const u8 *key, const u8 *twk_key, in hw_cipher_init() argument
915 write_key_reg(key_chn_sel + 4, twk_key, key_len); in hw_cipher_init()
1115 static int hw_aes_init(u32 chn, const u8 *key, const u8 *twk_key, u32 key_len, in hw_aes_init() argument
1137 if (!key || !twk_key) in hw_aes_init()
1146 return hw_cipher_init(chn, key, twk_key, key_len, iv, iv_len, in hw_aes_init()
1150 static int hw_sm4_init(u32 chn, const u8 *key, const u8 *twk_key, u32 key_len, in hw_sm4_init() argument
1169 if (!key || !twk_key) in hw_sm4_init()
1173 return hw_cipher_init(chn, key, twk_key, key_len, iv, iv_len, in hw_sm4_init()
1210 const u8 *key, const u8 *twk_key, u32 key_len, in rk_crypto_aes() argument
1222 ret = hw_aes_init(0, key, twk_key, key_len, iv, iv_len, mode, enc); in rk_crypto_aes()
1231 const u8 *key, const u8 *twk_key, u32 key_len, in rk_crypto_sm4() argument
1237 ret = hw_sm4_init(0, key, twk_key, key_len, iv, iv_len, mode, enc); in rk_crypto_sm4()
1257 ctx->key, ctx->twk_key, ctx->key_len, in rockchip_crypto_cipher()
1261 ctx->key, ctx->twk_key, ctx->key_len, in rockchip_crypto_cipher()