projects
/
open-ath9k-htc-firmware.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove duplicate: tasklet_api.h
[open-ath9k-htc-firmware.git]
/
target_firmware
/
magpie_fw_dev
/
target
/
inc
/
adf_os_crypto.h
diff --git
a/target_firmware/magpie_fw_dev/target/inc/adf_os_crypto.h
b/target_firmware/magpie_fw_dev/target/inc/adf_os_crypto.h
index 25776bd436436442a6bf359a33a9ba053f0d4c76..71ac9c52ad310ebd840fc00c6ba6e0854892e106 100755
(executable)
--- a/
target_firmware/magpie_fw_dev/target/inc/adf_os_crypto.h
+++ b/
target_firmware/magpie_fw_dev/target/inc/adf_os_crypto.h
@@
-45,12
+45,12
@@
/**
* @brief Representation of a cipher context.
/**
* @brief Representation of a cipher context.
- */
+ */
typedef __adf_os_cipher_t adf_os_cipher_t;
/**
* @brief Types of crypto algorithms
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,
typedef enum adf_os_crypto_alg{
ADF_OS_CRYPTO_AES = __ADF_OS_CRYPTO_AES,
ADF_OS_CRYPTO_OTHER = __ADF_OS_CRYPTO_OTHER,
@@
-60,7
+60,7
@@
typedef enum adf_os_crypto_alg{
/**
* @brief allocate the cipher context
* @param[in] type crypto algorithm
/**
* @brief allocate the cipher context
* @param[in] type crypto algorithm
- *
+ *
* @return the new cipher context
*/
static inline adf_os_cipher_t
* @return the new cipher context
*/
static inline adf_os_cipher_t
@@
-71,7
+71,7
@@
adf_os_crypto_alloc_cipher(adf_os_crypto_alg_t type)
/**
* @brief free the cipher context
/**
* @brief free the cipher context
- *
+ *
* @param[in] cipher cipher context
*/
static inline void
* @param[in] cipher cipher context
*/
static inline void
@@
-82,11
+82,11
@@
adf_os_crypto_free_cipher(adf_os_cipher_t cipher)
/**
* @brief set the key for cipher context with length keylen
/**
* @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
* @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
* @return a_uint32_t
*/
static inline a_uint32_t
@@
-97,7
+97,7
@@
adf_os_crypto_cipher_setkey(adf_os_cipher_t cipher, const a_uint8_t *key, a_uint
/**
* @brief encrypt the data with AES
/**
* @brief encrypt the data with AES
- *
+ *
* @param[in] cipher cipher context
* @param[in] src unencrypted data
* @param[out] dst encrypted data
* @param[in] cipher cipher context
* @param[in] src unencrypted data
* @param[out] dst encrypted data