diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2021-11-18 16:01:19 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2021-11-18 16:01:19 +0900 |
commit | 85cb7375fec39bb9fb195ca0bbe95bbbfd6deb98 (patch) | |
tree | 2996ebbf2a3749de176257cf4a66af6c7e742cfc /random | |
parent | 17f9eb20c94fd6711370546437b7150dc11a6335 (diff) | |
download | libgcrypt-85cb7375fec39bb9fb195ca0bbe95bbbfd6deb98.tar.gz |
jitternetropy: Put our local change to use non-secure memory.
* random/jitterentropy-base.c (jent_entropy_collector_alloc_internal):
Let jent_memaccess use normal memory.
--
GnuPG-bug-id: 5523
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'random')
-rw-r--r-- | random/jitterentropy-base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/random/jitterentropy-base.c b/random/jitterentropy-base.c index 9aef266a..cf7630d9 100644 --- a/random/jitterentropy-base.c +++ b/random/jitterentropy-base.c @@ -407,7 +407,7 @@ static struct rand_data if (!(flags & JENT_DISABLE_MEMORY_ACCESS)) { uint32_t memsize = jent_memsize(flags); - entropy_collector->mem = (unsigned char *)jent_zalloc(memsize); + entropy_collector->mem = _gcry_calloc (1, memsize); #ifdef JENT_RANDOM_MEMACCESS /* |