Skip to content

Commit a43e40b

Browse files
committed
autogen: run to update randombytes declaration
Run the autogen script to reflect the changes made to the randombytes() API. Signed-off-by: Andreas Hatziiliou <andreas.hatziiliou@savoirfairelinux.com>
1 parent 2e24d9e commit a43e40b

23 files changed

+66
-66
lines changed

examples/basic_deterministic/mlkem_native/custom_no_randomized_config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@
310310
* consumer.
311311
*
312312
* If this option is not set, mlkem-native expects a function
313-
* void randombytes(uint8_t *out, size_t outlen).
313+
* int randombytes(uint8_t *out, size_t outlen).
314314
*
315315
* Set this option and define `mlk_randombytes` if you want to
316316
* use a custom method to sample randombytes with a different name
@@ -321,7 +321,7 @@
321321
#if !defined(__ASSEMBLER__)
322322
#include <stdint.h>
323323
#include "sys.h"
324-
static MLK_INLINE void mlk_randombytes(uint8_t *ptr, size_t len)
324+
static MLK_INLINE int mlk_randombytes(uint8_t *ptr, size_t len)
325325
{
326326
... your implementation ...
327327
}

examples/custom_backend/mlkem_native/custom_config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306
* consumer.
307307
*
308308
* If this option is not set, mlkem-native expects a function
309-
* void randombytes(uint8_t *out, size_t outlen).
309+
* int randombytes(uint8_t *out, size_t outlen).
310310
*
311311
* Set this option and define `mlk_randombytes` if you want to
312312
* use a custom method to sample randombytes with a different name
@@ -317,7 +317,7 @@
317317
#if !defined(__ASSEMBLER__)
318318
#include <stdint.h>
319319
#include "sys.h"
320-
static MLK_INLINE void mlk_randombytes(uint8_t *ptr, size_t len)
320+
static MLK_INLINE int mlk_randombytes(uint8_t *ptr, size_t len)
321321
{
322322
... your implementation ...
323323
}

examples/monolithic_build/config_1024.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
* consumer.
308308
*
309309
* If this option is not set, mlkem-native expects a function
310-
* void randombytes(uint8_t *out, size_t outlen).
310+
* int randombytes(uint8_t *out, size_t outlen).
311311
*
312312
* Set this option and define `mlk_randombytes` if you want to
313313
* use a custom method to sample randombytes with a different name
@@ -318,7 +318,7 @@
318318
#if !defined(__ASSEMBLER__)
319319
#include <stdint.h>
320320
#include "sys.h"
321-
static MLK_INLINE void mlk_randombytes(uint8_t *ptr, size_t len)
321+
static MLK_INLINE int mlk_randombytes(uint8_t *ptr, size_t len)
322322
{
323323
... your implementation ...
324324
}

examples/monolithic_build/config_512.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
* consumer.
308308
*
309309
* If this option is not set, mlkem-native expects a function
310-
* void randombytes(uint8_t *out, size_t outlen).
310+
* int randombytes(uint8_t *out, size_t outlen).
311311
*
312312
* Set this option and define `mlk_randombytes` if you want to
313313
* use a custom method to sample randombytes with a different name
@@ -318,7 +318,7 @@
318318
#if !defined(__ASSEMBLER__)
319319
#include <stdint.h>
320320
#include "sys.h"
321-
static MLK_INLINE void mlk_randombytes(uint8_t *ptr, size_t len)
321+
static MLK_INLINE int mlk_randombytes(uint8_t *ptr, size_t len)
322322
{
323323
... your implementation ...
324324
}

examples/monolithic_build/config_768.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
* consumer.
308308
*
309309
* If this option is not set, mlkem-native expects a function
310-
* void randombytes(uint8_t *out, size_t outlen).
310+
* int randombytes(uint8_t *out, size_t outlen).
311311
*
312312
* Set this option and define `mlk_randombytes` if you want to
313313
* use a custom method to sample randombytes with a different name
@@ -318,7 +318,7 @@
318318
#if !defined(__ASSEMBLER__)
319319
#include <stdint.h>
320320
#include "sys.h"
321-
static MLK_INLINE void mlk_randombytes(uint8_t *ptr, size_t len)
321+
static MLK_INLINE int mlk_randombytes(uint8_t *ptr, size_t len)
322322
{
323323
... your implementation ...
324324
}

examples/monolithic_build_multilevel/multilevel_config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
* consumer.
310310
*
311311
* If this option is not set, mlkem-native expects a function
312-
* void randombytes(uint8_t *out, size_t outlen).
312+
* int randombytes(uint8_t *out, size_t outlen).
313313
*
314314
* Set this option and define `mlk_randombytes` if you want to
315315
* use a custom method to sample randombytes with a different name
@@ -320,7 +320,7 @@
320320
#if !defined(__ASSEMBLER__)
321321
#include <stdint.h>
322322
#include "sys.h"
323-
static MLK_INLINE void mlk_randombytes(uint8_t *ptr, size_t len)
323+
static MLK_INLINE int mlk_randombytes(uint8_t *ptr, size_t len)
324324
{
325325
... your implementation ...
326326
}

examples/monolithic_build_multilevel_native/multilevel_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
* consumer.
310310
*
311311
* If this option is not set, mlkem-native expects a function
312-
* void randombytes(uint8_t *out, size_t outlen).
312+
* int randombytes(uint8_t *out, size_t outlen).
313313
*
314314
* Set this option and define `mlk_randombytes` if you want to
315315
* use a custom method to sample randombytes with a different name

examples/monolithic_build_native/config_1024.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
* consumer.
309309
*
310310
* If this option is not set, mlkem-native expects a function
311-
* void randombytes(uint8_t *out, size_t outlen).
311+
* int randombytes(uint8_t *out, size_t outlen).
312312
*
313313
* Set this option and define `mlk_randombytes` if you want to
314314
* use a custom method to sample randombytes with a different name
@@ -319,7 +319,7 @@
319319
#if !defined(__ASSEMBLER__)
320320
#include <stdint.h>
321321
#include "sys.h"
322-
static MLK_INLINE void mlk_randombytes(uint8_t *ptr, size_t len)
322+
static MLK_INLINE int mlk_randombytes(uint8_t *ptr, size_t len)
323323
{
324324
... your implementation ...
325325
}

examples/monolithic_build_native/config_512.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
* consumer.
309309
*
310310
* If this option is not set, mlkem-native expects a function
311-
* void randombytes(uint8_t *out, size_t outlen).
311+
* int randombytes(uint8_t *out, size_t outlen).
312312
*
313313
* Set this option and define `mlk_randombytes` if you want to
314314
* use a custom method to sample randombytes with a different name
@@ -319,7 +319,7 @@
319319
#if !defined(__ASSEMBLER__)
320320
#include <stdint.h>
321321
#include "sys.h"
322-
static MLK_INLINE void mlk_randombytes(uint8_t *ptr, size_t len)
322+
static MLK_INLINE int mlk_randombytes(uint8_t *ptr, size_t len)
323323
{
324324
... your implementation ...
325325
}

examples/monolithic_build_native/config_768.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@
308308
* consumer.
309309
*
310310
* If this option is not set, mlkem-native expects a function
311-
* void randombytes(uint8_t *out, size_t outlen).
311+
* int randombytes(uint8_t *out, size_t outlen).
312312
*
313313
* Set this option and define `mlk_randombytes` if you want to
314314
* use a custom method to sample randombytes with a different name
@@ -319,7 +319,7 @@
319319
#if !defined(__ASSEMBLER__)
320320
#include <stdint.h>
321321
#include "sys.h"
322-
static MLK_INLINE void mlk_randombytes(uint8_t *ptr, size_t len)
322+
static MLK_INLINE int mlk_randombytes(uint8_t *ptr, size_t len)
323323
{
324324
... your implementation ...
325325
}

0 commit comments

Comments
 (0)