Add generic px4 interface for crypto features

Add common functions, implemented for nuttx, and link to architecture specific libraries

Make a separate library to wrap nuttx random number generator as "os_random".

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2021-09-27 17:45:07 +02:00
committed by Beat Küng
parent aa61bc4942
commit d36a91ceaf
6 changed files with 482 additions and 1 deletions
@@ -52,6 +52,10 @@
# include <nuttx/i2c/i2c_master.h>
#endif // CONFIG_I2C
#if defined(PX4_CRYPTO)
#include <px4_platform_common/crypto.h>
#endif
int px4_platform_init()
{
@@ -70,6 +74,10 @@ int px4_platform_init()
close(fd_buf);
}
#if defined(PX4_CRYPTO)
PX4Crypto::px4_crypto_init();
#endif
hrt_init();
param_init();