Skip to content

Commit

Permalink
FW-867. Add a check to warn users about slow SW encryption
Browse files Browse the repository at this point in the history
TimothyClaeys committed May 28, 2020
1 parent c878741 commit 5962edc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions inc/check_config.h
Original file line number Diff line number Diff line change
@@ -14,6 +14,19 @@
#error 'Board name must be specified to check for configuration errors'
#endif

#if (defined(OPENMOTE_CC2538) || \
defined(OPENMOTE_B) || \
defined(OPENMOTE_B_24GHZ) || \
defined(OPENMOTE_B_SUBGHZ) || \
defined(TELOSB) || \
defined(WSN430V13B) || \
defined(WSN430V14) || \
defined(GINA) || \
defined(Z1)) && \
!defined(OPENWSN_AES_HW)
#warning 'Software encryption might be too slow on certain hardware. It is recommend to use OPENWSN_AES_HW where possible.'
#endif

#if defined(PYTHON_BOARD) && defined(OPENWSN_AES_HW)
#error 'Python board does not support hardware acceleration.'
#endif

0 comments on commit 5962edc

Please sign in to comment.