diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-09-08 08:22:05 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2018-09-08 08:22:05 +0000 |
commit | 1804d1f00895661869bdc0bb7a0a7f593368e801 (patch) | |
tree | e50ed8770ed7de06f1ea14483a41612192d7051e /os/hal/include | |
parent | 0de65e55c60ca3d25c2957d6804db1dc6be84720 (diff) | |
download | ChibiOS-1804d1f00895661869bdc0bb7a0a7f593368e801.tar.gz ChibiOS-1804d1f00895661869bdc0bb7a0a7f593368e801.tar.bz2 ChibiOS-1804d1f00895661869bdc0bb7a0a7f593368e801.zip |
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
Diffstat (limited to 'os/hal/include')
-rw-r--r-- | os/hal/include/hal_crypto.h | 2 |
1 files changed, 1 insertions, 1 deletions
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
|