From 7f2771b4660a09678ae7a2d350ee4f7916d7e2ca Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 27 Aug 2021 10:31:36 -0600 Subject: [PATCH] Fixed Algorithm id Algorithm id should be 0x72151267, second and third byte encode L3 and L2 size. 0x72 = 'r' 0x15 = 1 << 0x15 (L3 size) 0x12 = 1 << 0x12 (L2 size) 0x67 = 'g' --- src/backend/opencl/cl/cn/algorithm.cl | 2 +- src/base/crypto/Algorithm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/opencl/cl/cn/algorithm.cl b/src/backend/opencl/cl/cn/algorithm.cl index dcf43d44..7258479d 100644 --- a/src/backend/opencl/cl/cn/algorithm.cl +++ b/src/backend/opencl/cl/cn/algorithm.cl @@ -23,7 +23,7 @@ #define ALGO_RX_ARQMA 0x72121061 #define ALGO_RX_SFX 0x72151273 #define ALGO_RX_KEVA 0x7214116b -#define ALGO_RX_GRAFT 0x7257ef81 +#define ALGO_RX_GRAFT 0x72151267 #define ALGO_AR2_CHUKWA 0x61130000 #define ALGO_AR2_CHUKWA_V2 0x61140000 #define ALGO_AR2_WRKZ 0x61120000 diff --git a/src/base/crypto/Algorithm.h b/src/base/crypto/Algorithm.h index 062e3b46..15df2a2c 100644 --- a/src/base/crypto/Algorithm.h +++ b/src/base/crypto/Algorithm.h @@ -68,7 +68,7 @@ public: RX_0 = 0x72151200, // "rx/0" RandomX (reference configuration). RX_WOW = 0x72141177, // "rx/wow" RandomWOW (Wownero). RX_ARQ = 0x72121061, // "rx/arq" RandomARQ (Arqma). - RX_GRAFT = 0x7257ef81, // "rx/graft" RandomGRAFT (Graft). + RX_GRAFT = 0x72151267, // "rx/graft" RandomGRAFT (Graft). RX_SFX = 0x72151273, // "rx/sfx" RandomSFX (Safex Cash). RX_KEVA = 0x7214116b, // "rx/keva" RandomKEVA (Keva). AR2_CHUKWA = 0x61130000, // "argon2/chukwa" Argon2id (Chukwa).