Using secure memory
Werner Koch
wk at gnupg.org
Mon Apr 20 11:01:29 CEST 2015
On Mon, 20 Apr 2015 01:10, julien.voisin at dustri.org said:
> Also, I'm wondering how I can estimate how much memory I should
> allocate; for now I tried with 32k and the testsuite is running great,
> but I'm worried about some possible breakages.
You may call
gcry_control (GCRYCTL_DUMP_MEMORY_STATS);
which prints some memory stats to stderr or the Libgcrypt log handler.
But see also the other comments.
Shalom-Salam,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
More information about the Gcrypt-devel
mailing list