Inside Bitcoin
Opening the selected file…
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
1# Copyright (c) 2023-present The Bitcoin Core developers2# Distributed under the MIT software license, see the accompanying3# file COPYING or https://opensource.org/license/mit/.5add_library(bitcoin_crypto STATIC EXCLUDE_FROM_ALL6$<$<NOT:$<STREQUAL:${CMAKE_SYSTEM_NAME},Generic>>:aes.cpp>7chacha20.cpp8chacha20poly1305.cpp9hex_base.cpp10hkdf_sha256_32.cpp11hmac_sha256.cpp12hmac_sha512.cpp13muhash.cpp14poly1305.cpp15ripemd160.cpp16sha1.cpp17sha256.cpp18sha256_sse4.cpp19sha3.cpp20sha512.cpp21siphash.cpp22../support/cleanse.cpp23$<$<NOT:$<STREQUAL:${CMAKE_SYSTEM_NAME},Generic>>:../support/lockedpool.cpp>24)26target_link_libraries(bitcoin_crypto27PRIVATE28core_interface29)31if(HAVE_SSE41)32target_compile_definitions(bitcoin_crypto PRIVATE ENABLE_SSE41)33target_sources(bitcoin_crypto PRIVATE sha256_sse41.cpp)34set_property(SOURCE sha256_sse41.cpp PROPERTY35COMPILE_OPTIONS ${SSE41_CXXFLAGS}36)37endif()39if(HAVE_AVX2)40target_compile_definitions(bitcoin_crypto PRIVATE ENABLE_AVX2)41target_sources(bitcoin_crypto PRIVATE sha256_avx2.cpp)42set_property(SOURCE sha256_avx2.cpp PROPERTY43COMPILE_OPTIONS ${AVX2_CXXFLAGS}44)45endif()47if(HAVE_SSE41 AND HAVE_X86_SHANI)48target_compile_definitions(bitcoin_crypto PRIVATE ENABLE_SSE41 ENABLE_X86_SHANI)49target_sources(bitcoin_crypto PRIVATE sha256_x86_shani.cpp)50set_property(SOURCE sha256_x86_shani.cpp PROPERTY51COMPILE_OPTIONS ${SSE41_CXXFLAGS} ${X86_SHANI_CXXFLAGS}52)53endif()55if(HAVE_ARM_SHANI)56target_compile_definitions(bitcoin_crypto PRIVATE ENABLE_ARM_SHANI)57target_sources(bitcoin_crypto PRIVATE sha256_arm_shani.cpp)58set_property(SOURCE sha256_arm_shani.cpp PROPERTY59COMPILE_OPTIONS ${ARM_SHANI_CXXFLAGS}60)61endif()
Independent explanations by MyBitcoinExplorer. Not affiliated with or endorsed by Bitcoin Core. Guides are educational and do not replace the source or its tests.
Bitcoin Core source © its contributors, distributed under the MIT license. Original notices and bundled third-party licenses are retained in the source tree.