1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-12-22 22:58:30 +00:00

Merge pull request #2874 from hashcat/master

Backports from master
This commit is contained in:
Jens Steube 2021-07-12 08:57:50 +02:00 committed by GitHub
commit 1ab56afb9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 24 additions and 24 deletions

View File

@ -152,7 +152,7 @@ typedef struct pkzip pkzip_t;
#pragma pack(pop)
CONSTANT_AS u32a crc32tab[256] =
CONSTANT_VK u32a crc32tab[256] =
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,

View File

@ -150,7 +150,7 @@ typedef struct pkzip pkzip_t;
#pragma pack(pop)
CONSTANT_AS u32a crc32tab[256] =
CONSTANT_VK u32a crc32tab[256] =
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,

View File

@ -150,7 +150,7 @@ typedef struct pkzip pkzip_t;
#pragma pack(pop)
CONSTANT_AS u32a crc32tab[256] =
CONSTANT_VK u32a crc32tab[256] =
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,

View File

@ -152,7 +152,7 @@ typedef struct pkzip pkzip_t;
#pragma pack(pop)
CONSTANT_AS u32a crc32tab[256] =
CONSTANT_VK u32a crc32tab[256] =
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,

View File

@ -150,7 +150,7 @@ typedef struct pkzip pkzip_t;
#pragma pack(pop)
CONSTANT_AS u32a crc32tab[256] =
CONSTANT_VK u32a crc32tab[256] =
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,

View File

@ -150,7 +150,7 @@ typedef struct pkzip pkzip_t;
#pragma pack(pop)
CONSTANT_AS u32a crc32tab[256] =
CONSTANT_VK u32a crc32tab[256] =
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,

View File

@ -152,7 +152,7 @@ typedef struct pkzip pkzip_t;
#pragma pack(pop)
CONSTANT_AS u32a crc32tab[256] =
CONSTANT_VK u32a crc32tab[256] =
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,

View File

@ -150,7 +150,7 @@ typedef struct pkzip pkzip_t;
#pragma pack(pop)
CONSTANT_AS u32a crc32tab[256] =
CONSTANT_VK u32a crc32tab[256] =
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,

View File

@ -150,7 +150,7 @@ typedef struct pkzip pkzip_t;
#pragma pack(pop)
CONSTANT_AS u32a crc32tab[256] =
CONSTANT_VK u32a crc32tab[256] =
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,

View File

@ -152,7 +152,7 @@ typedef struct pkzip pkzip_t;
#pragma pack(pop)
CONSTANT_AS u32a crc32tab[256] =
CONSTANT_VK u32a crc32tab[256] =
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,

View File

@ -150,7 +150,7 @@ typedef struct pkzip pkzip_t;
#pragma pack(pop)
CONSTANT_AS u32a crc32tab[256] =
CONSTANT_VK u32a crc32tab[256] =
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,

View File

@ -150,7 +150,7 @@ typedef struct pkzip pkzip_t;
#pragma pack(pop)
CONSTANT_AS u32a crc32tab[256] =
CONSTANT_VK u32a crc32tab[256] =
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,

View File

@ -152,7 +152,7 @@ typedef struct pkzip pkzip_t;
#pragma pack(pop)
CONSTANT_AS u32a crc32tab[256] =
CONSTANT_VK u32a crc32tab[256] =
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,

View File

@ -150,7 +150,7 @@ typedef struct pkzip pkzip_t;
#pragma pack(pop)
CONSTANT_AS u32a crc32tab[256] =
CONSTANT_VK u32a crc32tab[256] =
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,

View File

@ -150,7 +150,7 @@ typedef struct pkzip pkzip_t;
#pragma pack(pop)
CONSTANT_AS u32a crc32tab[256] =
CONSTANT_VK u32a crc32tab[256] =
{
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba,
0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3,

View File

@ -22,17 +22,17 @@
#define hc_thread_exit(t) ExitThread (t)
#define hc_thread_detach(t) CloseHandle (t)
/*
#define hc_thread_mutex_init(m) InitializeCriticalSection (&m)
#define hc_thread_mutex_lock(m) EnterCriticalSection (&m)
#define hc_thread_mutex_unlock(m) LeaveCriticalSection (&m)
#define hc_thread_mutex_init(m) InitializeCriticalSection (&m)
#define hc_thread_mutex_delete(m) DeleteCriticalSection (&m)
*/
/*
#define hc_thread_mutex_init(m) m = CreateMutex (NULL, FALSE, NULL)
#define hc_thread_mutex_lock(m) WaitForSingleObject (m, INFINITE)
#define hc_thread_mutex_unlock(m) ReleaseMutex (m)
#define hc_thread_mutex_delete(m) CloseHandle (m)
*/
#define hc_thread_sem_init(s) s = CreateSemaphore (NULL, 0, INT_MAX, NULL)
#define hc_thread_sem_post(s) ReleaseSemaphore (s, 1, NULL)

View File

@ -81,13 +81,13 @@ typedef struct timespec hc_timer_t;
#endif
#if defined (_WIN)
typedef HANDLE hc_thread_t;
typedef HANDLE hc_thread_mutex_t;
typedef HANDLE hc_thread_semaphore_t;
typedef HANDLE hc_thread_t;
typedef CRITICAL_SECTION hc_thread_mutex_t;
typedef HANDLE hc_thread_semaphore_t;
#else
typedef pthread_t hc_thread_t;
typedef pthread_mutex_t hc_thread_mutex_t;
typedef sem_t hc_thread_semaphore_t;
typedef pthread_t hc_thread_t;
typedef pthread_mutex_t hc_thread_mutex_t;
typedef sem_t hc_thread_semaphore_t;
#endif
// enums