Get rid of cpu_sha1.c

This commit is contained in:
jsteube
2019-03-25 14:08:59 +01:00
parent 4e5da084f2
commit fb8a9d7c40
43 changed files with 137 additions and 1172 deletions
+2
View File
@@ -1451,6 +1451,7 @@ DECLSPEC int ffz (const u32 v)
return -1;
}
#ifdef KERNEL_STATIC
DECLSPEC int hash_comp (const u32 *d1, GLOBAL_AS const u32 *d2)
{
if (d1[3] > d2[DGST_R3]) return ( 1);
@@ -1487,6 +1488,7 @@ DECLSPEC int find_hash (const u32 *digest, const u32 digests_cnt, GLOBAL_AS cons
return (-1);
}
#endif
DECLSPEC u32 check_bitmap (GLOBAL_AS const u32 *bitmap, const u32 bitmap_mask, const u32 bitmap_shift, const u32 digest)
{
+4
View File
@@ -158,8 +158,12 @@ DECLSPEC u32 hc_lop_0x96_S (const u32 a, const u32 b, const u32 c);
// legacy common code
DECLSPEC int ffz (const u32 v);
#ifdef KERNEL_STATIC
DECLSPEC int hash_comp (const u32 *d1, GLOBAL_AS const u32 *d2);
DECLSPEC int find_hash (const u32 *digest, const u32 digests_cnt, GLOBAL_AS const digest_t *digests_buf);
#endif
DECLSPEC u32 check_bitmap (GLOBAL_AS const u32 *bitmap, const u32 bitmap_mask, const u32 bitmap_shift, const u32 digest);
DECLSPEC u32 check (const u32 *digest, GLOBAL_AS const u32 *bitmap_s1_a, GLOBAL_AS const u32 *bitmap_s1_b, GLOBAL_AS const u32 *bitmap_s1_c, GLOBAL_AS const u32 *bitmap_s1_d, GLOBAL_AS const u32 *bitmap_s2_a, GLOBAL_AS const u32 *bitmap_s2_b, GLOBAL_AS const u32 *bitmap_s2_c, GLOBAL_AS const u32 *bitmap_s2_d, const u32 bitmap_mask, const u32 bitmap_shift1, const u32 bitmap_shift2);
DECLSPEC void mark_hash (GLOBAL_AS plain_t *plains_buf, GLOBAL_AS u32 *d_result, const u32 salt_pos, const u32 digests_cnt, const u32 digest_pos, const u32 hash_pos, const u64 gid, const u32 il_pos, const u32 extra1, const u32 extra2);
+4
View File
@@ -8,6 +8,10 @@
#include "inc_common.h"
#include "inc_rp.h"
#ifndef MAYBE_UNUSED
#define MAYBE_UNUSED
#endif
#ifdef REAL_SHM
#define COPY_PW(x) \
LOCAL_AS pw_t s_pws[64]; \
+4
View File
@@ -6,6 +6,10 @@
#ifndef _INC_RP_H
#define _INC_RP_H
#ifndef DECLSPEC
#define DECLSPEC
#endif
#ifndef MAYBE_UNUSED
#define MAYBE_UNUSED
#endif
+4
View File
@@ -6,6 +6,10 @@
#ifndef _INC_RP_OPTIMIZED_H
#define _INC_RP_OPTIMIZED_H
#ifndef DECLSPEC
#define DECLSPEC
#endif
#ifndef MAYBE_UNUSED
#define MAYBE_UNUSED
#endif
+2
View File
@@ -823,11 +823,13 @@ typedef enum combinator_mode
} combinator_mode_t;
#ifdef KERNEL_STATIC
typedef struct digest
{
u32 digest_buf[DGST_ELEM];
} digest_t;
#endif
typedef struct salt
{