summaryrefslogtreecommitdiffstats
path: root/crypto/info.c
diff options
context:
space:
mode:
authorOrr Toledano <otoledan@amazon.com>2021-05-06 23:32:49 +0200
committerTomas Mraz <tomas@openssl.org>2021-12-16 12:38:09 +0100
commiteb28fda79748c303d88a8af48de5187100f2c64c (patch)
tree17d698b50c8bd724fc27c80c1684a1b0296adcb2 /crypto/info.c
parentAdd Arm Assembly (aarch64) support for RNG (diff)
downloadopenssl-eb28fda79748c303d88a8af48de5187100f2c64c.tar.xz
openssl-eb28fda79748c303d88a8af48de5187100f2c64c.zip
Add support for RNDRRS Provider
Create new provider for RNDRRS. Modify support for rand_cpu to default to RDRAND/RDSEED on x86 and RNDRRS on aarch64. Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15361)
Diffstat (limited to 'crypto/info.c')
-rw-r--r--crypto/info.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/info.c b/crypto/info.c
index a106e8c885..f3bef56b13 100644
--- a/crypto/info.c
+++ b/crypto/info.c
@@ -135,7 +135,11 @@ DEFINE_RUN_ONCE_STATIC(init_info_strings)
add_seeds_string("stdsc");
#endif
#ifdef OPENSSL_RAND_SEED_RDCPU
+# ifdef __aarch64__
+ add_seeds_string("rndr ( rndrrs rndr )");
+# else
add_seeds_string("rdrand ( rdseed rdrand )");
+# endif
#endif
#ifdef OPENSSL_RAND_SEED_LIBRANDOM
add_seeds_string("C-library-random");