From b1e0434bd76e0d43878738e81c4c35c123c697cf Mon Sep 17 00:00:00 2001 From: b0lek Date: Thu, 20 Jan 2022 19:31:09 +0100 Subject: [PATCH] changed mode number to 28600 --- OpenCL/{m94200-pure.cl => m28600-pure.cl} | 6 +++--- src/modules/{module_94200.c => module_28600.c} | 2 +- tools/test_modules/{m94200.pm => m28600.pm} | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename OpenCL/{m94200-pure.cl => m28600-pure.cl} (97%) rename src/modules/{module_94200.c => module_28600.c} (99%) rename tools/test_modules/{m94200.pm => m28600.pm} (100%) diff --git a/OpenCL/m94200-pure.cl b/OpenCL/m28600-pure.cl similarity index 97% rename from OpenCL/m94200-pure.cl rename to OpenCL/m28600-pure.cl index a37162ff0..5689bf430 100644 --- a/OpenCL/m94200-pure.cl +++ b/OpenCL/m28600-pure.cl @@ -79,7 +79,7 @@ DECLSPEC void hmac_sha256_run_V (u32x *w0, u32x *w1, u32x *w2, u32x *w3, u32x *i sha256_transform_vector (w0, w1, w2, w3, digest); } -KERNEL_FQ void m94200_init (KERN_ATTR_TMPS_ESALT (postgres_sha256_tmp_t, postgres_sha256_t)) +KERNEL_FQ void m28600_init (KERN_ATTR_TMPS_ESALT (postgres_sha256_tmp_t, postgres_sha256_t)) { /** * base @@ -163,7 +163,7 @@ KERNEL_FQ void m94200_init (KERN_ATTR_TMPS_ESALT (postgres_sha256_tmp_t, postgre } } -KERNEL_FQ void m94200_loop (KERN_ATTR_TMPS_ESALT (postgres_sha256_tmp_t, postgres_sha256_t)) +KERNEL_FQ void m28600_loop (KERN_ATTR_TMPS_ESALT (postgres_sha256_tmp_t, postgres_sha256_t)) { const u64 gid = get_global_id (0); @@ -269,7 +269,7 @@ KERNEL_FQ void m94200_loop (KERN_ATTR_TMPS_ESALT (postgres_sha256_tmp_t, postgre } } -KERNEL_FQ void m94200_comp (KERN_ATTR_TMPS_ESALT (postgres_sha256_tmp_t, postgres_sha256_t)) +KERNEL_FQ void m28600_comp (KERN_ATTR_TMPS_ESALT (postgres_sha256_tmp_t, postgres_sha256_t)) { /** * base diff --git a/src/modules/module_94200.c b/src/modules/module_28600.c similarity index 99% rename from src/modules/module_94200.c rename to src/modules/module_28600.c index 0dbde289a..653e78bbb 100644 --- a/src/modules/module_94200.c +++ b/src/modules/module_28600.c @@ -19,7 +19,7 @@ static const u32 DGST_POS3 = 3; static const u32 DGST_SIZE = DGST_SIZE_4_8; static const u32 HASH_CATEGORY = HASH_CATEGORY_DATABASE_SERVER; static const char *HASH_NAME = "PostgreSQL SCRAM-SHA-256"; -static const u64 KERN_TYPE = 94200; +static const u64 KERN_TYPE = 28600; static const u32 OPTI_TYPE = OPTI_TYPE_ZERO_BYTE | OPTI_TYPE_SLOW_HASH_SIMD_LOOP; static const u64 OPTS_TYPE = OPTS_TYPE_PT_GENERATE_LE | OPTS_TYPE_ST_BASE64; diff --git a/tools/test_modules/m94200.pm b/tools/test_modules/m28600.pm similarity index 100% rename from tools/test_modules/m94200.pm rename to tools/test_modules/m28600.pm