From 1804d1f00895661869bdc0bb7a0a7f593368e801 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 8 Sep 2018 08:22:05 +0000 Subject: TRNG API now takes a new "size" parameter, the API can now generate random numbers of variable size. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12249 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/include/hal_crypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/include') diff --git a/os/hal/include/hal_crypto.h b/os/hal/include/hal_crypto.h index 2b0ad6b0e..78f164692 100644 --- a/os/hal/include/hal_crypto.h +++ b/os/hal/include/hal_crypto.h @@ -376,7 +376,7 @@ extern "C" { cryerror_t cryHMACSHA512Final(CRYDriver *cryp, HMACSHA512Context *hmacsha512ctxp, uint8_t *out); - cryerror_t cryTRNG(CRYDriver *cryp, uint8_t *out); + cryerror_t cryTRNG(CRYDriver *cryp, size_t size, uint8_t *out); #ifdef __cplusplus } #endif -- cgit v1.2.3