summaryrefslogtreecommitdiff
path: root/lib/rsa/rsa-verify.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2025-02-11 14:55:22 +0100
committerTom Rini <trini@konsulko.com>2025-02-18 12:30:32 -0600
commit50e8089c1de107137c7a30fd5691ebd449f42e2d (patch)
tree614d639171a8ad4363189ee5093956056db0caa5 /lib/rsa/rsa-verify.c
parente93f11148ae42bbb805077a48ab8cb63137a3a17 (diff)
tools: use cryptographically safe RNG
The PRNG implementing the random() function only has 2^31 states and therefore is unsafe to use for cryptography. Use arc4random() instead. Fixes: cc34f04efd63 ("tools: image-host.c: use random instead of rand") Addresses-Coverity-ID: 312953 Calling risky function Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'lib/rsa/rsa-verify.c')
0 files changed, 0 insertions, 0 deletions