mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-27 02:18:21 +00:00
Initialize both 32bit CrcGenerateTable() and 64bit Crc64GenerateTable()
This commit is contained in:
parent
b2870dadfd
commit
8324d3cd07
@ -13,6 +13,7 @@
|
|||||||
#include <7zCrc.h>
|
#include <7zCrc.h>
|
||||||
#include <7zFile.h>
|
#include <7zFile.h>
|
||||||
#include <Xz.h>
|
#include <Xz.h>
|
||||||
|
#include <XzCrc64.h>
|
||||||
|
|
||||||
/* Maybe _LZMA_NO_SYSTEM_SIZE_T defined? */
|
/* Maybe _LZMA_NO_SYSTEM_SIZE_T defined? */
|
||||||
#if defined (__clang__) || defined (__GNUC__)
|
#if defined (__clang__) || defined (__GNUC__)
|
||||||
@ -157,9 +158,11 @@ bool hc_fopen (HCFILE *fp, const char *path, const char *mode)
|
|||||||
}
|
}
|
||||||
else if (is_xz)
|
else if (is_xz)
|
||||||
{
|
{
|
||||||
|
/* thread safe on little endian */
|
||||||
if (xz_initialized == false)
|
if (xz_initialized == false)
|
||||||
{
|
{
|
||||||
CrcGenerateTable ();
|
CrcGenerateTable ();
|
||||||
|
Crc64GenerateTable ();
|
||||||
Sha256Prepare ();
|
Sha256Prepare ();
|
||||||
xz_initialized = true;
|
xz_initialized = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user