
fix Security breach found by Tencent Blade Team please refer to security advisory - CVE-2020-11068
57 lines
1.4 KiB
C
57 lines
1.4 KiB
C
/*!
|
|
* \file soft-se-hal.h
|
|
*
|
|
* \brief Secure Element hardware abstraction layer
|
|
*
|
|
* \copyright Revised BSD License, see section \ref LICENSE.
|
|
*
|
|
* \code
|
|
* ______ _
|
|
* / _____) _ | |
|
|
* ( (____ _____ ____ _| |_ _____ ____| |__
|
|
* \____ \| ___ | (_ _) ___ |/ ___) _ \
|
|
* _____) ) ____| | | || |_| ____( (___| | | |
|
|
* (______/|_____)_|_|_| \__)_____)\____)_| |_|
|
|
* (C)2020 Semtech
|
|
*
|
|
* ___ _____ _ ___ _ _____ ___ ___ ___ ___
|
|
* / __|_ _/_\ / __| |/ / __/ _ \| _ \/ __| __|
|
|
* \__ \ | |/ _ \ (__| ' <| _| (_) | / (__| _|
|
|
* |___/ |_/_/ \_\___|_|\_\_| \___/|_|_\\___|___|
|
|
* embedded.connectivity.solutions===============
|
|
*
|
|
* \endcode
|
|
*
|
|
*/
|
|
#ifndef __SOFT_SE_HAL_H__
|
|
#define __SOFT_SE_HAL_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
/*!
|
|
* \brief Get a 64 bits unique ID
|
|
*
|
|
* \param [IN] id Pointer to an array that will contain the Unique ID
|
|
*/
|
|
void SoftSeHalGetUniqueId( uint8_t *id );
|
|
|
|
/*!
|
|
* \brief Get a random number
|
|
*
|
|
* \remark The number SHALL NOT be generated using a pseudo random number
|
|
* generator
|
|
* \retval number 32 bit random value
|
|
*/
|
|
uint32_t SoftSeHalGetRandomNumber( void );
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // __SOFT_SE_HAL_H__
|