src/dpdk/drivers/crypto/dpaa_sec/dpaa_sec.c
static void
dpaa_sec_sym_session_clear(struct rte_cryptodev *dev,
		struct rte_cryptodev_sym_session *sess)
{
	PMD_INIT_FUNC_TRACE();
	uint8_t index = dev->driver_id;
	void *sess_priv = get_sym_session_private_data(sess, index);
	dpaa_sec_session *s = (dpaa_sec_session *)sess_priv;

	if (sess_priv) {
		free_session_memory(dev, s);
		set_sym_session_private_data(sess, index, NULL);
	}
}
/** Clear the memory of session so it doesn't leave key material behind */
Clear the memory of session so it doesn't leave key material behind
Clear the memory of session so it doesn ' t leave key material behind
static void
dpaa_sec_sym_session_clear(struct rte_cryptodev *dev,
		struct rte_cryptodev_sym_session *sess)
{
	PMD_INIT_FUNC_TRACE();
	uint8_t index = dev->driver_id;
	void *sess_priv = get_sym_session_private_data(sess, index);
	dpaa_sec_session *s = (dpaa_sec_session *)sess_priv;
	if (sess_priv) {
		free_session_memory(dev, s);
		set_sym_session_private_data(sess, index, NULL);
	}
}
static void dpaa_sec_sym_session_clear ( struct rte_cryptodev * dev , struct rte_cryptodev_sym_session * sess ) { PMD_INIT_FUNC_TRACE ( ) ; uint8_t index = dev -> driver_id ; void * sess_priv = get_sym_session_private_data ( sess , index ) ; dpaa_sec_session * s = ( dpaa_sec_session * ) sess_priv ; if ( sess_priv ) { free_session_memory ( dev , s ) ; set_sym_session_private_data ( sess , index , NULL ) ; } }
Clear the memory of session so it doesn't leave key material behind
Clear the memory of session so it doesn ' t leave key material behind