[test] Use mock random data for public key self-tests

Make the public key self-tests fully deterministic by temporarily
overriding the function used to obtain random data for RSA encryption.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2026-05-06 21:43:44 +01:00
parent ae8defc279
commit 7fe8b7fde4
6 changed files with 110 additions and 11 deletions
+2
View File
@@ -58,4 +58,6 @@ struct rsa_digestinfo_prefix {
extern struct pubkey_algorithm rsa_algorithm;
extern int ( * rsa_get_random ) ( void *data, size_t len );
#endif /* _IPXE_RSA_H */