Skip to content

Commit 13b5dfe

Browse files
committed
Move crypto implementations to src/crypto/
1 parent 1cc344c commit 13b5dfe

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

src/Makefile.am

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ BITCOIN_CORE_H = \
7575
rpcserver.h \
7676
script.h \
7777
serialize.h \
78-
sha2.h \
79-
sha1.h \
78+
crypto/sha2.h \
79+
crypto/sha1.h \
8080
sync.h \
8181
threadsafety.h \
8282
tinyformat.h \
@@ -154,8 +154,8 @@ libbitcoin_common_a_SOURCES = \
154154
protocol.cpp \
155155
rpcprotocol.cpp \
156156
script.cpp \
157-
sha1.cpp \
158-
sha2.cpp \
157+
crypto/sha1.cpp \
158+
crypto/sha2.cpp \
159159
sync.cpp \
160160
util.cpp \
161161
version.cpp \

src/sha1.cpp renamed to src/crypto/sha1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Distributed under the MIT/X11 software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include "sha1.h"
5+
#include "crypto/sha1.h"
66

77
#include <string.h>
88

File renamed without changes.

src/sha2.cpp renamed to src/crypto/sha2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Distributed under the MIT/X11 software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include "sha2.h"
5+
#include "crypto/sha2.h"
66

77
#include <string.h>
88

File renamed without changes.

src/hash.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#ifndef BITCOIN_HASH_H
77
#define BITCOIN_HASH_H
88

9-
#include "sha2.h"
9+
#include "crypto/sha2.h"
1010
#include "serialize.h"
1111
#include "uint256.h"
1212
#include "version.h"

src/key.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include "key.h"
66

7-
#include "sha2.h"
7+
#include "crypto/sha2.h"
88

99
#include <openssl/bn.h>
1010
#include <openssl/ecdsa.h>

src/script.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#include "hash.h"
1010
#include "key.h"
1111
#include "keystore.h"
12-
#include "sha1.h"
13-
#include "sha2.h"
12+
#include "crypto/sha1.h"
13+
#include "crypto/sha2.h"
1414
#include "sync.h"
1515
#include "uint256.h"
1616
#include "util.h"

src/test/sha1_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Distributed under the MIT/X11 software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include "sha1.h"
5+
#include "crypto/sha1.h"
66
#include "util.h"
77

88
#include <vector>

src/test/sha2_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Distributed under the MIT/X11 software license, see the accompanying
33
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
44

5-
#include "sha2.h"
5+
#include "crypto/sha2.h"
66
#include "util.h"
77

88
#include <vector>

0 commit comments

Comments
 (0)