libcrypt: There is no need to clear message digest context after they

are finialized after r336539, so do not do it.

Submitted by:	David CARLIER <devnexen gmail com>
MFC after:	1 month (after r336539)
Differential Revision:	https://reviews.freebsd.org/D16059
This commit is contained in:
Xin LI 2018-07-20 07:16:28 +00:00
parent a7e92a77da
commit c721d4192e
2 changed files with 0 additions and 4 deletions

View File

@ -239,8 +239,6 @@ crypt_sha256(const char *key, const char *salt, char *buffer)
memset(temp_result, '\0', sizeof(temp_result));
memset(p_bytes, '\0', key_len);
memset(s_bytes, '\0', salt_len);
memset(&ctx, '\0', sizeof(ctx));
memset(&alt_ctx, '\0', sizeof(alt_ctx));
return (0);
}

View File

@ -251,8 +251,6 @@ crypt_sha512(const char *key, const char *salt, char *buffer)
memset(temp_result, '\0', sizeof(temp_result));
memset(p_bytes, '\0', key_len);
memset(s_bytes, '\0', salt_len);
memset(&ctx, '\0', sizeof(ctx));
memset(&alt_ctx, '\0', sizeof(alt_ctx));
return (0);
}