Home GnuPG

primes: Avoid leaking bits of the prime test to pageable memory.

Description

primes: Avoid leaking bits of the prime test to pageable memory.

* cipher/primegen.c (gen_prime): Allocate MODS in secure memory.

This increases the pressure on the secure memory by about 1400 byte
but given that we can meanwhile increase the size of the secmem area,
this is acceptable.

  • GnuPG-bug-id: T3848
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details