/* * Zero Memory * (C) 2012 Jack Lloyd * * Distributed under the terms of the Botan license */ #include namespace Botan { void zero_mem(void* ptr, size_t n) { volatile byte* p = reinterpret_cast(ptr); for(size_t i = 0; i != n; ++i) p[i] = 0; } }