Implement a secure ICS protocol targeting LoRa Node151 microcontroller for controlling irrigation.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

59 lines
2.3 KiB

  1. /**
  2. * @file atecc608a-tnglora-se-hal.h
  3. *
  4. * @brief Secure Element hardware abstraction layer
  5. *
  6. * @remark Current implementation only supports LoRaWAN 1.0.x version
  7. *
  8. * @copyright Copyright (c) 2020 The Things Industries B.V.
  9. *
  10. * Revised BSD License
  11. * Copyright The Things Industries B.V 2020. All rights reserved.
  12. *
  13. * Redistribution and use in source and binary forms, with or without
  14. * modification, are permitted provided that the following conditions are met:
  15. * * Redistributions of source code must retain the above copyright
  16. * notice, this list of conditions and the following disclaimer.
  17. * * Redistributions in binary form must reproduce the above copyright
  18. * notice, this list of conditions and the following disclaimer in the
  19. * documentation and/or other materials provided with the distribution.
  20. * * Neither the name of the Things Industries B.V nor the
  21. * names of its contributors may be used to endorse or promote products
  22. * derived from this software without specific prior written permission.
  23. *
  24. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  25. * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  26. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  27. * ARE DISCLAIMED. IN NO EVENT SHALL THE THINGS INDUSTRIES B.V BE LIABLE FOR ANY
  28. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  29. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  30. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  31. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  32. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  33. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  34. */
  35. #ifndef __ATECC608A_TNGLORA_SE_HAL_H__
  36. #define __ATECC608A_TNGLORA_SE_HAL_H__
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40. #include <stdint.h>
  41. #include <stdbool.h>
  42. /*!
  43. * \brief Get a random number
  44. *
  45. * \remark The number SHALL NOT be generated using a pseudo random number
  46. * generator
  47. * \retval number 32 bit random value
  48. */
  49. uint32_t ATECC608ASeHalGetRandomNumber( void );
  50. #ifdef __cplusplus
  51. }
  52. #endif
  53. #endif // __ATECC608A_TNGLORA_SE_HAL_H__