SHA256_Init(&s);
SHA256_Bytes(&s, p, len);
SHA256_Final(&s, output);
+ smemclr(&s, sizeof(s));
}
/*
SHA256_State *s = handle;
SHA256_Final(s, output);
+ smemclr(s, sizeof(*s));
sfree(s);
}
static void sha256_free_context(void *handle)
{
+ smemclr(handle, 3 * sizeof(SHA256_State));
sfree(handle);
}