diff options
Diffstat (limited to 'Middlewares/ST/STM32_WPAN/ble/cryptographic/Inc/Common_ecc_rsa/MATH/BN/arith.h')
-rw-r--r-- | Middlewares/ST/STM32_WPAN/ble/cryptographic/Inc/Common_ecc_rsa/MATH/BN/arith.h | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/Middlewares/ST/STM32_WPAN/ble/cryptographic/Inc/Common_ecc_rsa/MATH/BN/arith.h b/Middlewares/ST/STM32_WPAN/ble/cryptographic/Inc/Common_ecc_rsa/MATH/BN/arith.h deleted file mode 100644 index 575ae1504..000000000 --- a/Middlewares/ST/STM32_WPAN/ble/cryptographic/Inc/Common_ecc_rsa/MATH/BN/arith.h +++ /dev/null @@ -1,92 +0,0 @@ -/** - ****************************************************************************** - * @file arith.h - * @author MCD Application Team - * @brief Basic Arithmetic Functions for Big Numbers (Multi Precision Integers) - ****************************************************************************** - * @attention - * - * <h2><center>© 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 __CRL_ARITH_H__ -#define __CRL_ARITH_H__ - -#ifdef __cplusplus -extern "C" -{ -#endif - - /* Includes ------------------------------------------------------------------*/ -#include "bn.h" - - /** @ingroup Arith - * @{ - */ - - /* Exported functions ------------------------------------------------------- */ - - /* z=x+y.**********************************************************************/ - int32_t AddBig (const BigNum_stt *P_pAddend1BN, \ - const BigNum_stt *P_pAddend2BN, \ - BigNum_stt *P_pSumBN, \ - membuf_stt *P_pMemBuf); - - /* z=x-y. *********************************************************************/ - int32_t SubBig (const BigNum_stt *P_pMinuendBN, \ - const BigNum_stt *P_pSubtrahendBN, \ - BigNum_stt * P_pDifferenceBN, \ - membuf_stt *P_pMemBuf); - - /* x=x<<1. - * Left shift of 1 bit. */ - int32_t FastMul2 (BigNum_stt *P_pBN); - - void FastDiv2 (BigNum_stt *P_pBN); - - /* x=x<<(esp words). Left shift of esp words. ********************************/ - int32_t FastMulInnerBase (BigNum_stt *P_pBN, \ - uint16_t P_exp); - - /* x=x>>(esp words). Right shift of esp words. *******************************/ - void FastDivInnerBase (BigNum_stt * P_pBN, \ - uint16_t P_exp); - - /* x=x<<shift. Left shift of 'shift' bits. Condition: 0<shift<32. *************/ - int32_t LeftShift (BigNum_stt * P_pBN, \ - uint32_t P_shift); - \ - - void RightShift (BigNum_stt *P_pBN, \ - uint32_t P_shift); - - /* x=x*y. *********************************************************************/ - int32_t MulBigbyUnInt (BigNum_stt *P_pBN, \ - uint32_t P_factor2); - \ - - - /* Core Subtraction function, the signs are not used. P_difference = |P_minuend| - |P_subtrahend| */ - int32_t Sub_Moduli_Big (const BigNum_stt *P_pMinuendBN, \ - const BigNum_stt *P_pSubtrahendBN, \ - BigNum_stt *P_pDifferenceBN); - - /** - * @} - */ - -#ifdef __cplusplus -} -#endif - -#endif /*__CRL_BIG_H__*/ -/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ |