Skip to content

Commit efd9f41

Browse files
author
Yura Zarudniy
authored
remove sha library (#60)
Signed-off-by: Yura Zarudniy <[email protected]>
1 parent f09caec commit efd9f41

File tree

9 files changed

+3
-126
lines changed

9 files changed

+3
-126
lines changed

core/crypto/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ add_subdirectory(blake2)
77
add_subdirectory(bls)
88
add_subdirectory(murmur)
99
add_subdirectory(randomness)
10-
add_subdirectory(sha)

core/crypto/randomness/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ target_link_libraries(randomness_provider
88
Boost::boost
99
blob
1010
buffer
11-
sha
11+
p2p::p2p_sha
1212
)

core/crypto/randomness/impl/randomness_provider.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
#include "crypto/randomness/impl/randomness_provider.hpp"
77

8+
#include <libp2p/crypto/sha/sha256.hpp>
89
#include "common/le_encoder.hpp"
9-
#include "crypto/sha/sha256.hpp"
1010

1111
namespace fc::crypto::randomness {
1212

@@ -30,7 +30,7 @@ namespace fc::crypto::randomness {
3030
common::encodeInteger(static_cast<size_t>(tag), value);
3131
common::encodeInteger(static_cast<size_t>(index), value);
3232
value.put(s);
33-
auto hash = sha256(value);
33+
auto hash = libp2p::crypto::sha256(value);
3434

3535
return Randomness(hash);
3636
}

core/crypto/sha/CMakeLists.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

core/crypto/sha/sha256.cpp

Lines changed: 0 additions & 25 deletions
This file was deleted.

core/crypto/sha/sha256.hpp

Lines changed: 0 additions & 30 deletions
This file was deleted.

test/core/crypto/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,4 @@ target_link_libraries(murmur_test
2525
murmur
2626
)
2727

28-
add_subdirectory(sha)
2928
add_subdirectory(randomness)

test/core/crypto/sha/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
This file was deleted.

test/core/crypto/sha/sha256_test.cpp

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)