mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +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:
committed by
Alan Carvalho de Assis
parent
3312ab2087
commit
3ce9e34ec9
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user