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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=336541
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);
}