Skip to content

Commit 2b68eb5

Browse files
committed
Refactor yes(crypt|power) and k12/keccak code locations
1 parent 2c80bc6 commit 2b68eb5

32 files changed

+76
-254
lines changed

cmake/randomx.cmake

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ if (WITH_RANDOMX)
4040
src/crypto/rx/RxDataset.cpp
4141
src/crypto/rx/RxQueue.cpp
4242
src/crypto/rx/RxVm.cpp
43-
src/crypto/randomx/defyx/KangarooTwelve.c
44-
src/crypto/randomx/defyx/KeccakP-1600-reference.c
45-
src/crypto/randomx/defyx/KeccakSpongeWidth1600.c
46-
src/crypto/randomx/defyx/yescrypt-best.c
47-
src/crypto/randomx/panthera/sha256.c
48-
src/crypto/randomx/panthera/yespower-opt.c
43+
src/crypto/k12/KangarooTwelve.c
44+
src/crypto/keccak/KeccakP-1600-reference.c
45+
src/crypto/keccak/KeccakSpongeWidth1600.c
46+
src/crypto/yes/sha256.c
47+
src/crypto/yes/yescrypt-best.c
48+
src/crypto/yes/yespower-opt.c
4949
)
5050

5151
if (CMAKE_C_COMPILER_ID MATCHES MSVC)
File renamed without changes.

src/crypto/randomx/defyx/KangarooTwelve.h renamed to src/crypto/k12/KangarooTwelve.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ and related or neighboring rights to the source code in this file.
1515
#ifndef KeccakP1600_excluded
1616

1717
#include <stddef.h>
18-
#include "align.h"
19-
#include "KeccakSpongeWidth1600.h"
18+
#include "../align.h"
19+
#include "../keccak/KeccakSpongeWidth1600.h"
2020
#include "Phases.h"
2121

2222
typedef KCP_Phases KangarooTwelve_Phases;
File renamed without changes.

src/crypto/randomx/defyx/KeccakSponge-common.h renamed to src/crypto/keccak/KeccakSponge-common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ and related or neighboring rights to the source code in this file.
1515
#define _KeccakSpongeCommon_h_
1616

1717
#include <string.h>
18-
#include "align.h"
18+
#include "../align.h"
1919

2020
#define KCP_DeclareSpongeStructure(prefix, size, alignment) \
2121
ALIGN(alignment) typedef struct prefix##_SpongeInstanceStruct { \

0 commit comments

Comments
 (0)