| Top | Description |
#include <gsignond/gsignond-utils.h> gchar * gsignond_generate_nonce (); gboolean gsignond_wipe_directory (const gchar *dirname); gboolean gsignond_wipe_file (const gchar *filename);
gchar * gsignond_generate_nonce ();
This function generates a random secure nonce using SHA1 HMAC.
Returns : |
the nonce in lowercase hexadecimal format, 40 bytes long. [transfer full] |
gboolean gsignond_wipe_directory (const gchar *dirname);
This function securely wipes the contents of the directory by calling
gsignond_wipe_file() on each file. It also removes links and empty directories but
does not recursively wipe them.
|
directory to wipe |
Returns : |
TRUE if wiping and removal was successful. |