#include "secure_mem.h"

void secure_memzero(void *ptr, size_t len)
{
    volatile unsigned char *p = (volatile unsigned char *)ptr;

    if (p == 0) {
        return;
    }

    while (len > 0) {
        *p++ = 0;
        len--;
    }
}
