/**
* @brief Representation of a cipher context.
- */
+ */
typedef __adf_os_cipher_t adf_os_cipher_t;
/**
* @brief Types of crypto algorithms
- */
+ */
typedef enum adf_os_crypto_alg{
ADF_OS_CRYPTO_AES = __ADF_OS_CRYPTO_AES,
ADF_OS_CRYPTO_OTHER = __ADF_OS_CRYPTO_OTHER,
/**
* @brief allocate the cipher context
* @param[in] type crypto algorithm
- *
+ *
* @return the new cipher context
*/
static inline adf_os_cipher_t
/**
* @brief free the cipher context
- *
+ *
* @param[in] cipher cipher context
*/
static inline void
/**
* @brief set the key for cipher context with length keylen
- *
+ *
* @param[in] cipher cipher context
* @param[in] key key material
* @param[in] keylen length of key material
- *
+ *
* @return a_uint32_t
*/
static inline a_uint32_t
/**
* @brief encrypt the data with AES
- *
+ *
* @param[in] cipher cipher context
* @param[in] src unencrypted data
* @param[out] dst encrypted data