mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 05:08:41 +08:00
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:
parent
3312ab2087
commit
3ce9e34ec9
1 changed files with 6 additions and 0 deletions
|
@ -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],
|
||||
|
|
Loading…
Reference in a new issue