[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnutls-dev]memory allocation

From: Nikos Mavroyanopoulos
Subject: [gnutls-dev]memory allocation
Date: Wed May 22 21:36:01 2002
User-agent: Mutt/1.3.28i

 I've just noticed that in benchmarks using the libc's allocation
functions, instead of the included gnutls_malloc() made gnutls
about 20% faster. Due to this, and due to the fact that the included
allocation functions did not much except for overwriting memory pointers
(which is not really reliable), I've removed these functions, and
used the libc's ones.

 I've also added the gnutls_global_set_mem_func() which is to set
other memory allocation functions. Thus if one needs to rely on the
memory allocation functions to delete sensitive data, then he may
just use the ones included in libgcrypt, which are considered to be secure 
(but slower).

Nikos Mavroyanopoulos

reply via email to

[Prev in Thread] Current Thread [Next in Thread]