/* Copyright (c) 2015, Linaro Limited * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ /** * @file * * ODP crypto */ #ifndef ODP_CRYPTO_TYPES_H_ #define ODP_CRYPTO_TYPES_H_ #ifdef __cplusplus extern "C" { #endif /** @addtogroup odp_crypto * @{ */ #define ODP_CRYPTO_SESSION_INVALID (0xffffffffffffffffULL) typedef uint64_t odp_crypto_session_t; typedef ODP_HANDLE_T(odp_crypto_compl_t); /** Get printable format of odp_crypto_session_t */ static inline uint64_t odp_crypto_session_to_u64(odp_crypto_session_t hdl) { return (uint64_t)hdl; } /** Get printable format of odp_crypto_compl_t_t */ static inline uint64_t odp_crypto_compl_to_u64(odp_crypto_compl_t hdl) { return _odp_pri(hdl); } /** * @} */ #ifdef __cplusplus } #endif #endif