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:
parent
639068548e
commit
47bb7620ee
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user