core: hash: fix hash backends erasing ctx function pointers
This commit is contained in:
@@ -257,7 +257,6 @@ static void sha_finish(struct b_hash_ctx *context, void *out, size_t max)
|
||||
|
||||
memcpy(out, digest, b_min(size_t, sizeof digest, max));
|
||||
/* Wipe variables */
|
||||
memset(context, '\0', sizeof(*context));
|
||||
memset(&finalcount, '\0', sizeof(finalcount));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user