Home
last modified time | relevance | path

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

/dpdk/drivers/crypto/mlx5/
H A Dmlx5_crypto_dek.c37 struct rte_crypto_cipher_xform *cipher_ctx = cipher; in mlx5_crypto_dek_prepare() local
38 uint64_t key64 = __rte_raw_cksum(cipher_ctx->key.data, in mlx5_crypto_dek_prepare()
39 cipher_ctx->key.length, 0); in mlx5_crypto_dek_prepare()
79 struct rte_crypto_cipher_xform *cipher_ctx = ctx->cipher; in mlx5_crypto_dek_match_cb() local
84 if (key_len != cipher_ctx->key.length) in mlx5_crypto_dek_match_cb()
86 return memcmp(cipher_ctx->key.data, dek->data, key_len); in mlx5_crypto_dek_match_cb()
93 struct rte_crypto_cipher_xform *cipher_ctx = ctx->cipher; in mlx5_crypto_dek_create_cb() local
106 switch (cipher_ctx->key.length) { in mlx5_crypto_dek_create_cb()
119 memcpy(&dek_attr.key, cipher_ctx->key.data, cipher_ctx->key.length); in mlx5_crypto_dek_create_cb()
126 memcpy(&dek->data, cipher_ctx->key.data, cipher_ctx->key.length); in mlx5_crypto_dek_create_cb()