Make it easier to include OpenCL kernels into modules
This commit is contained in:
@@ -10,8 +10,13 @@
|
||||
#include "convert.h"
|
||||
#include "shared.h"
|
||||
#include "memory.h"
|
||||
|
||||
#define DGST_ELEM 4
|
||||
|
||||
#include "emu_general.h"
|
||||
#include "emu_inc_cipher_aes.h"
|
||||
#include "emu_inc_hash_md5.h"
|
||||
#include "m02500-pure.cl"
|
||||
|
||||
static const u32 ATTACK_EXEC = ATTACK_EXEC_OUTSIDE_KERNEL;
|
||||
static const u32 DGST_POS0 = 0;
|
||||
@@ -114,23 +119,6 @@ typedef struct hccapx hccapx_t;
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
#define DGST_ELEM 4
|
||||
|
||||
typedef struct digest
|
||||
{
|
||||
u32 digest_buf[DGST_ELEM];
|
||||
|
||||
} digest_t;
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
|
||||
#include "emu_general.h"
|
||||
#include "inc_vendor.h"
|
||||
#include "m02500-pure.cl"
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
static void to_hccapx_t (const hashes_t *hashes, hccapx_t *hccapx, const u32 salt_pos, const u32 digest_pos)
|
||||
{
|
||||
const salt_t *salts_buf = hashes->salts_buf;
|
||||
|
||||
@@ -10,8 +10,13 @@
|
||||
#include "convert.h"
|
||||
#include "shared.h"
|
||||
#include "memory.h"
|
||||
|
||||
#define DGST_ELEM 4
|
||||
|
||||
#include "emu_general.h"
|
||||
#include "emu_inc_cipher_aes.h"
|
||||
#include "emu_inc_hash_md5.h"
|
||||
#include "m02501-pure.cl"
|
||||
|
||||
static const u32 ATTACK_EXEC = ATTACK_EXEC_OUTSIDE_KERNEL;
|
||||
static const u32 DGST_POS0 = 0;
|
||||
@@ -111,23 +116,6 @@ typedef struct hccapx hccapx_t;
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
#define DGST_ELEM 4
|
||||
|
||||
typedef struct digest
|
||||
{
|
||||
u32 digest_buf[DGST_ELEM];
|
||||
|
||||
} digest_t;
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
|
||||
#include "emu_general.h"
|
||||
#include "inc_vendor.h"
|
||||
#include "m02501-pure.cl"
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
static void to_hccapx_t (const hashes_t *hashes, hccapx_t *hccapx, const u32 salt_pos, const u32 digest_pos)
|
||||
{
|
||||
const salt_t *salts_buf = hashes->salts_buf;
|
||||
|
||||
@@ -11,6 +11,11 @@
|
||||
#include "shared.h"
|
||||
#include "memory.h"
|
||||
|
||||
#define DGST_ELEM 4
|
||||
|
||||
#include "emu_general.h"
|
||||
#include "m16800-pure.cl"
|
||||
|
||||
static const u32 ATTACK_EXEC = ATTACK_EXEC_OUTSIDE_KERNEL;
|
||||
static const u32 DGST_POS0 = 0;
|
||||
static const u32 DGST_POS1 = 1;
|
||||
@@ -70,23 +75,6 @@ typedef struct wpa_pbkdf2_tmp
|
||||
} wpa_pbkdf2_tmp_t;
|
||||
*/
|
||||
|
||||
#define DGST_ELEM 4
|
||||
|
||||
typedef struct digest
|
||||
{
|
||||
u32 digest_buf[DGST_ELEM];
|
||||
|
||||
} digest_t;
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
|
||||
#include "emu_general.h"
|
||||
#include "inc_vendor.h"
|
||||
#include "m16800-pure.cl"
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
const char *module_benchmark_mask (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
||||
{
|
||||
const char *mask = "?a?a?a?a?a?a?a?a";
|
||||
|
||||
@@ -11,6 +11,11 @@
|
||||
#include "shared.h"
|
||||
#include "memory.h"
|
||||
|
||||
#define DGST_ELEM 4
|
||||
|
||||
#include "emu_general.h"
|
||||
#include "m16801-pure.cl"
|
||||
|
||||
static const u32 ATTACK_EXEC = ATTACK_EXEC_OUTSIDE_KERNEL;
|
||||
static const u32 DGST_POS0 = 0;
|
||||
static const u32 DGST_POS1 = 1;
|
||||
@@ -67,23 +72,6 @@ typedef struct wpa_pmk_tmp
|
||||
} wpa_pmk_tmp_t;
|
||||
*/
|
||||
|
||||
#define DGST_ELEM 4
|
||||
|
||||
typedef struct digest
|
||||
{
|
||||
u32 digest_buf[DGST_ELEM];
|
||||
|
||||
} digest_t;
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
|
||||
#include "emu_general.h"
|
||||
#include "inc_vendor.h"
|
||||
#include "m16801-pure.cl"
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
const char *module_benchmark_mask (MAYBE_UNUSED const hashconfig_t *hashconfig, MAYBE_UNUSED const user_options_t *user_options, MAYBE_UNUSED const user_options_extra_t *user_options_extra)
|
||||
{
|
||||
const char *mask = "?a?a?a?a?a?a?a?axxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
|
||||
|
||||
Reference in New Issue
Block a user