core: hash: fix hash backends erasing ctx function pointers

This commit is contained in:
2025-10-25 00:01:16 +01:00
parent 7c9a753007
commit 3e82d12476
2 changed files with 0 additions and 3 deletions

View File

@@ -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));
}