Added a memwipe() function to safely overwrite sensitive memory

This commit is contained in:
Martin Willi
2011-05-09 14:36:14 +02:00
parent 52cab8874b
commit ed678b52e2
2 changed files with 53 additions and 0 deletions
+8
View File
@@ -99,6 +99,14 @@ void memxor(u_int8_t dst[], u_int8_t src[], size_t n)
}
}
/**
* Described in header.
*/
void memwipe_noinline(void *ptr, size_t n)
{
memwipe_inline(ptr, n);
}
/**
* Described in header.
*/