1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-02-02 10:51:16 +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) if (xz_initialized == false)
{ {
CrcGenerateTable (); CrcGenerateTable ();
Sha256Prepare ();
xz_initialized = true; xz_initialized = true;
} }
@ -672,7 +673,7 @@ char *hc_fgets (char *buf, int len, HCFILE *fp)
{ {
char *r = NULL; char *r = NULL;
if (fp == NULL || len <= 0) return r; if (fp == NULL || buf == NULL || len <= 0) return r;
if (fp->pfp) if (fp->pfp)
{ {