diff options
author | Klavishnik <evg.shtanov@gmail.com> | 2023-08-10 13:56:24 +0300 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-10-10 17:18:36 +0200 |
commit | 3ecb534946e2d940fc8a145b06f976744f5dc234 (patch) | |
tree | 17d1556e1cd367781f8f246edb1ab6236db14d9d /demos/mac | |
parent | 962c7e0cb73fa6d83eee4bc57eb6e10c690509a1 (diff) |
Added check for the return value of the RAND_bytes() function
Call app_bail_out if RAND_bytes() fails.
Also changed the output parameter of RAND_bytes() to inp as
writing to encrypted output buffer does not make sense.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21706)
(cherry picked from commit 8d120aef951d7bb7deac0b8b559f8003f5ea6384)
Diffstat (limited to 'demos/mac')
0 files changed, 0 insertions, 0 deletions