mirror of
https://github.com/hashcat/hashcat.git
synced 2025-02-18 10:32:04 +00:00
Update bitmap.c function parameters
This commit is contained in:
parent
3d1237a43d
commit
0155c9d44a
@ -8,9 +8,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
int sort_by_bitmap (const void *s1, const void *s2);
|
void bitmap_ctx_init (hashcat_ctx_t *hashcat_ctx);
|
||||||
|
void bitmap_ctx_destroy (hashcat_ctx_t *hashcat_ctx);
|
||||||
void bitmap_ctx_init (bitmap_ctx_t *bitmap_ctx, const user_options_t *user_options, const hashconfig_t *hashconfig, const hashes_t *hashes);
|
|
||||||
void bitmap_ctx_destroy (bitmap_ctx_t *bitmap_ctx);
|
|
||||||
|
|
||||||
#endif // _BITMAP_H
|
#endif // _BITMAP_H
|
||||||
|
11
src/bitmap.c
11
src/bitmap.c
@ -50,8 +50,13 @@ static u32 generate_bitmaps (const u32 digests_cnt, const u32 dgst_size, const u
|
|||||||
return collisions;
|
return collisions;
|
||||||
}
|
}
|
||||||
|
|
||||||
void bitmap_ctx_init (bitmap_ctx_t *bitmap_ctx, const user_options_t *user_options, const hashconfig_t *hashconfig, const hashes_t *hashes)
|
void bitmap_ctx_init (hashcat_ctx_t *hashcat_ctx)
|
||||||
{
|
{
|
||||||
|
bitmap_ctx_t *bitmap_ctx = hashcat_ctx->bitmap_ctx;
|
||||||
|
hashconfig_t *hashconfig = hashcat_ctx->hashconfig;
|
||||||
|
hashes_t *hashes = hashcat_ctx->hashes;
|
||||||
|
user_options_t *user_options = hashcat_ctx->user_options;
|
||||||
|
|
||||||
bitmap_ctx->enabled = false;
|
bitmap_ctx->enabled = false;
|
||||||
|
|
||||||
if (user_options->keyspace == true) return;
|
if (user_options->keyspace == true) return;
|
||||||
@ -131,8 +136,10 @@ void bitmap_ctx_init (bitmap_ctx_t *bitmap_ctx, const user_options_t *user_optio
|
|||||||
bitmap_ctx->bitmap_s2_d = bitmap_s2_d;
|
bitmap_ctx->bitmap_s2_d = bitmap_s2_d;
|
||||||
}
|
}
|
||||||
|
|
||||||
void bitmap_ctx_destroy (bitmap_ctx_t *bitmap_ctx)
|
void bitmap_ctx_destroy (hashcat_ctx_t *hashcat_ctx)
|
||||||
{
|
{
|
||||||
|
bitmap_ctx_t *bitmap_ctx = hashcat_ctx->bitmap_ctx;
|
||||||
|
|
||||||
if (bitmap_ctx->enabled == false) return;
|
if (bitmap_ctx->enabled == false) return;
|
||||||
|
|
||||||
myfree (bitmap_ctx->bitmap_s1_a);
|
myfree (bitmap_ctx->bitmap_s1_a);
|
||||||
|
Loading…
Reference in New Issue
Block a user