include/crypto/curve25519.h: fix gcc14 error

/home/raiden00/git/RTOS/nuttx/nuttx/include/crypto/curve25519.h:42:5: error: implicit declaration of function 'arc4random_buf' [-Wimplicit-function-declaration]
   42 |     arc4random_buf(secret, CURVE25519_KEY_SIZE);
This commit is contained in:
raiden00pl 2024-05-31 15:35:52 +02:00 committed by Alan Carvalho de Assis
parent 3312ab2087
commit 3ce9e34ec9

View file

@ -20,6 +20,12 @@
#ifndef __INCLUDE_CRYPTO_CURVE25519_H
#define __INCLUDE_CRYPTO_CURVE25519_H
/****************************************************************************
* Included Files
****************************************************************************/
#include <stdlib.h>
#define CURVE25519_KEY_SIZE 32
int curve25519(uint8_t out[CURVE25519_KEY_SIZE],