Add call-gates to px4_crypto for protected build

This adds kernel-userspace interfaces to crypto layer

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2022-08-31 09:48:49 +02:00
committed by Beat Küng
parent d681782c7f
commit d6a4e158cf
5 changed files with 251 additions and 0 deletions
@@ -208,6 +208,8 @@ public:
size_t get_min_blocksize(uint8_t key_idx);
static int crypto_ioctl(unsigned int cmd, unsigned long arg);
private:
crypto_session_handle_t _crypto_handle;
static px4_sem_t _lock;