From 5c615ad7bb66810c25cb271a84a79bee9919e0dc Mon Sep 17 00:00:00 2001 From: philsmd Date: Sat, 26 Sep 2020 16:13:52 +0200 Subject: [PATCH] minor: use correct buffer size for AES decryption --- OpenCL/m16300-pure.cl | 2 +- OpenCL/m23300-pure.cl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenCL/m16300-pure.cl b/OpenCL/m16300-pure.cl index 2f5e81a7f..f2c0823f2 100644 --- a/OpenCL/m16300-pure.cl +++ b/OpenCL/m16300-pure.cl @@ -479,7 +479,7 @@ KERNEL_FQ void m16300_comp (KERN_ATTR_TMPS_ESALT (pbkdf2_sha256_tmp_t, ethereum_ * aes init */ - #define KEYLEN 60 + #define KEYLEN 44 u32 ks[KEYLEN]; diff --git a/OpenCL/m23300-pure.cl b/OpenCL/m23300-pure.cl index a2f0bb4bc..11ea520dc 100644 --- a/OpenCL/m23300-pure.cl +++ b/OpenCL/m23300-pure.cl @@ -306,7 +306,7 @@ KERNEL_FQ void m23300_comp (KERN_ATTR_TMPS_ESALT (iwork_tmp_t, iwork_t)) * AES part */ - u32 ukey[8]; + u32 ukey[4]; ukey[0] = tmps[gid].out[0]; ukey[1] = tmps[gid].out[1];