1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-07-03 13:22:37 +00:00

Use fastest SHA-256 implementation supported by CPU

This commit is contained in:
Jukka Ojanen 2021-08-26 13:01:25 +03:00
parent 639068548e
commit 47bb7620ee

View File

@ -157,6 +157,7 @@ bool hc_fopen (HCFILE *fp, const char *path, const char *mode)
if (xz_initialized == false)
{
CrcGenerateTable ();
Sha256Prepare ();
xz_initialized = true;
}
@ -672,7 +673,7 @@ char *hc_fgets (char *buf, int len, HCFILE *fp)
{
char *r = NULL;
if (fp == NULL || len <= 0) return r;
if (fp == NULL || buf == NULL || len <= 0) return r;
if (fp->pfp)
{