From 0822930471c4b05b52d479047e76ff37e5047c2f Mon Sep 17 00:00:00 2001 From: philsmd Date: Sat, 30 Jul 2022 11:54:50 +0200 Subject: [PATCH] fix length of salt_buf for -m 29600 --- OpenCL/m29600-pure.cl | 4 +++- src/modules/module_29600.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OpenCL/m29600-pure.cl b/OpenCL/m29600-pure.cl index f3a954386..c34832787 100644 --- a/OpenCL/m29600-pure.cl +++ b/OpenCL/m29600-pure.cl @@ -25,12 +25,14 @@ typedef struct pbkdf_sha1_tmp u32 dgst[32]; u32 out[32]; + } pbkdf_sha1_tmp_t; typedef struct terra { - u32 salt_buf[8]; + u32 salt_buf[4]; u32 ct_block_a[4]; + } terra_t; #define FIXED_SALT_SIZE 16 diff --git a/src/modules/module_29600.c b/src/modules/module_29600.c index c2ceddfc1..c3a759a17 100644 --- a/src/modules/module_29600.c +++ b/src/modules/module_29600.c @@ -59,7 +59,7 @@ typedef struct pbkdf_sha1_tmp typedef struct terra { - u32 salt_buf[8]; + u32 salt_buf[4]; u32 ct_block_a[4]; } terra_t;