secure memset function added, erases sensitive buffers