Browse Source

Move crypto implementations to src/crypto/

0.10
Pieter Wuille 11 years ago
parent
commit
13b5dfef64
  1. 8
      src/Makefile.am
  2. 2
      src/crypto/sha1.cpp
  3. 0
      src/crypto/sha1.h
  4. 2
      src/crypto/sha2.cpp
  5. 0
      src/crypto/sha2.h
  6. 2
      src/hash.h
  7. 2
      src/key.cpp
  8. 4
      src/script.cpp
  9. 2
      src/test/sha1_tests.cpp
  10. 2
      src/test/sha2_tests.cpp

8
src/Makefile.am

@ -75,8 +75,8 @@ BITCOIN_CORE_H = \
rpcserver.h \ rpcserver.h \
script.h \ script.h \
serialize.h \ serialize.h \
sha2.h \ crypto/sha2.h \
sha1.h \ crypto/sha1.h \
sync.h \ sync.h \
threadsafety.h \ threadsafety.h \
tinyformat.h \ tinyformat.h \
@ -154,8 +154,8 @@ libbitcoin_common_a_SOURCES = \
protocol.cpp \ protocol.cpp \
rpcprotocol.cpp \ rpcprotocol.cpp \
script.cpp \ script.cpp \
sha1.cpp \ crypto/sha1.cpp \
sha2.cpp \ crypto/sha2.cpp \
sync.cpp \ sync.cpp \
util.cpp \ util.cpp \
version.cpp \ version.cpp \

2
src/sha1.cpp → src/crypto/sha1.cpp

@ -2,7 +2,7 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sha1.h" #include "crypto/sha1.h"
#include <string.h> #include <string.h>

0
src/sha1.h → src/crypto/sha1.h

2
src/sha2.cpp → src/crypto/sha2.cpp

@ -2,7 +2,7 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sha2.h" #include "crypto/sha2.h"
#include <string.h> #include <string.h>

0
src/sha2.h → src/crypto/sha2.h

2
src/hash.h

@ -6,7 +6,7 @@
#ifndef BITCOIN_HASH_H #ifndef BITCOIN_HASH_H
#define BITCOIN_HASH_H #define BITCOIN_HASH_H
#include "sha2.h" #include "crypto/sha2.h"
#include "serialize.h" #include "serialize.h"
#include "uint256.h" #include "uint256.h"
#include "version.h" #include "version.h"

2
src/key.cpp

@ -4,7 +4,7 @@
#include "key.h" #include "key.h"
#include "sha2.h" #include "crypto/sha2.h"
#include <openssl/bn.h> #include <openssl/bn.h>
#include <openssl/ecdsa.h> #include <openssl/ecdsa.h>

4
src/script.cpp

@ -9,8 +9,8 @@
#include "hash.h" #include "hash.h"
#include "key.h" #include "key.h"
#include "keystore.h" #include "keystore.h"
#include "sha1.h" #include "crypto/sha1.h"
#include "sha2.h" #include "crypto/sha2.h"
#include "sync.h" #include "sync.h"
#include "uint256.h" #include "uint256.h"
#include "util.h" #include "util.h"

2
src/test/sha1_tests.cpp

@ -2,7 +2,7 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sha1.h" #include "crypto/sha1.h"
#include "util.h" #include "util.h"
#include <vector> #include <vector>

2
src/test/sha2_tests.cpp

@ -2,7 +2,7 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "sha2.h" #include "crypto/sha2.h"
#include "util.h" #include "util.h"
#include <vector> #include <vector>

Loading…
Cancel
Save