Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'Middlewares/ST/STM32_WPAN/ble/cryptographic/Inc/AES/Common/aes_common.h')
-rw-r--r--Middlewares/ST/STM32_WPAN/ble/cryptographic/Inc/AES/Common/aes_common.h119
1 files changed, 0 insertions, 119 deletions
diff --git a/Middlewares/ST/STM32_WPAN/ble/cryptographic/Inc/AES/Common/aes_common.h b/Middlewares/ST/STM32_WPAN/ble/cryptographic/Inc/AES/Common/aes_common.h
deleted file mode 100644
index 5a64beab8..000000000
--- a/Middlewares/ST/STM32_WPAN/ble/cryptographic/Inc/AES/Common/aes_common.h
+++ /dev/null
@@ -1,119 +0,0 @@
-/**
- ******************************************************************************
- * @file aes_common.h
- * @author MCD Application Team
- * @brief AES common functions and definitions
- ******************************************************************************
- * @attention
- *
- * <h2><center>&copy; Copyright (c) 2015 STMicroelectronics.
- * All rights reserved.</center></h2>
- *
- * This software component is licensed by ST under Image license SLA0044,
- * the "License"; You may not use this file except in compliance with the
- * License. You may obtain a copy of the License at:
- * http://www.st.com/SLA0044
- *
- ******************************************************************************
- */
-
-/* Define to prevent recursive inclusion -------------------------------------*/
-#ifndef __AES_COMMON_H__
-#define __AES_COMMON_H__
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
-
- /** @addtogroup AES
- * @{
- */
- /* Exported constants --------------------------------------------------------*/
-#define CRL_AES128_KEY 16 /*!< Number of bytes (uint8_t) necessary to store an AES key of 128 bits. */
-#define CRL_AES128_EXPANDED_KEY 44 /*!< Number of ints (uint32_t) necessary to store an expanded AES key of 128 bits. */
-#define CRL_AES192_KEY 24 /*!< Number of bytes (uint8_t) necessary to store an AES key of 192 bits. */
-#define CRL_AES192_EXPANDED_KEY 52 /*!< Number of ints (uint32_t) necessary to store an expanded AES key of 192 bits. */
-#define CRL_AES256_KEY 32 /*!< Number of bytes (uint8_t) necessary to store an AES key of 256 bits. */
-#define CRL_AES256_EXPANDED_KEY 60 /*!< Number of ints (uint32_t) necessary to store an expanded AES key of 256 bits. */
-
-
-#define CRL_AES_BLOCK 16 /*!< Number of bytes (uint8_t) necessary to store an AES block. */
-
-#ifdef INCLUDE_AES256
-# define CRL_AES_MAX_EXPKEY_SIZE 60 /*!< The max size of the AES expanded key (in uint32_t) according to the INCLUDE OPTIONS */
-# else
-# ifdef INCLUDE_AES192
-# define CRL_AES_MAX_EXPKEY_SIZE 52 /*!< The max size of the AES expanded key (in uint32_t) according to the INCLUDE OPTIONS */
-# else
-# define CRL_AES_MAX_EXPKEY_SIZE 44 /*!< The max size of the AES expanded key (in uint32_t) according to the INCLUDE OPTIONS */
-# endif
-#endif /*include aes 256 */
-
- /**
- * @}
- */
-
- /* Exported types ------------------------------------------------------------*/
- /** @addtogroup AESCBC
- * @{
- */
- typedef struct
- {
- uint32_t mContextId; /*!< Unique ID of this context. \b Not \b used in current implementation. */
- SKflags_et mFlags; /*!< 32 bit mFlags, used to perform keyschedule */
- const uint8_t *pmKey; /*!< Pointer to original Key buffer */
- const uint8_t *pmIv; /*!< Pointer to original Initialization Vector buffer */
- int32_t mIvSize; /*!< Size of the Initialization Vector in bytes */
- uint32_t amIv[4]; /*!< Temporary result/IV */
- int32_t mKeySize; /*!< Key length in bytes */
- uint32_t amExpKey[CRL_AES_MAX_EXPKEY_SIZE]; /*!< Expanded AES key */
- }
- AESCBCctx_stt; /*!< AES context structure for CBC mode */
-
- /**
- * @}
- */
-
- /* Exported functions --------------------------------------------------------*/
-#ifdef INCLUDE_ENCRYPTION
-void AES_keyschedule_enc (const uint8_t *P_pKey, \
- uint32_t *P_pExpKey, \
- int32_t P_keySize);
-
-void AES_general_SW_enc (const uint32_t* P_pInputBuffer,\
- uint32_t* P_pOutputBuffer, \
- const uint32_t* P_pExpKey, \
- int32_t P_keySize);
-#endif
-
-#ifdef INCLUDE_DECRYPTION
-void AES_keyschedule_dec (const uint8_t *P_pKey, \
- uint32_t *P_pExpKey, \
- int32_t P_keySize);
-
-void AES_general_SW_dec (const uint32_t* P_pInputBuffer,\
- uint32_t* P_pOutputBuffer, \
- const uint32_t* P_pExpKey, \
- int32_t P_keySize);
-#endif
- /** @addtogroup AESlowlevel AES
- * @{
- */
-
-
-
- /**
- * @}
- */
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /*__AES_COMMON_H__*/
-
-
-/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/