mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-30 20:52:30 +02:00
Add eddsa from ref10 implementation (with some modifications).
This commit is contained in:
parent
2fcc91a755
commit
93d60152d5
84 changed files with 5798 additions and 567 deletions
|
@ -1,36 +1,79 @@
|
|||
set(CORE_SRC
|
||||
"transport/NTCPSession.cpp"
|
||||
"transport/SSU.cpp"
|
||||
"transport/SSUData.cpp"
|
||||
"transport/SSUSession.cpp"
|
||||
"transport/Transports.cpp"
|
||||
"crypto/CryptoConst.cpp"
|
||||
"crypto/aes.cpp"
|
||||
"crypto/Signature.cpp"
|
||||
"util/base64.cpp"
|
||||
"util/util.cpp"
|
||||
"util/Log.cpp"
|
||||
"tunnel/TransitTunnel.cpp"
|
||||
"tunnel/Tunnel.cpp"
|
||||
"tunnel/TunnelGateway.cpp"
|
||||
"tunnel/TunnelEndpoint.cpp"
|
||||
"tunnel/TunnelPool.cpp"
|
||||
"tunnel/TunnelCrypto.cpp"
|
||||
"AddressBook.cpp"
|
||||
"Garlic.cpp"
|
||||
"I2NPProtocol.cpp"
|
||||
"Identity.cpp"
|
||||
"LeaseSet.cpp"
|
||||
"NetDbRequests.cpp"
|
||||
"NetworkDatabase.cpp"
|
||||
"Profiling.cpp"
|
||||
"RouterContext.cpp"
|
||||
"RouterInfo.cpp"
|
||||
"Streaming.cpp"
|
||||
"Destination.cpp"
|
||||
"Datagram.cpp"
|
||||
"UPnP.cpp"
|
||||
"Reseed.cpp"
|
||||
"transport/NTCPSession.cpp"
|
||||
"transport/SSU.cpp"
|
||||
"transport/SSUData.cpp"
|
||||
"transport/SSUSession.cpp"
|
||||
"transport/Transports.cpp"
|
||||
"crypto/CryptoConst.cpp"
|
||||
"crypto/aes.cpp"
|
||||
"crypto/Signature.cpp"
|
||||
"crypto/EdDSA25519.cpp"
|
||||
"util/base64.cpp"
|
||||
"util/util.cpp"
|
||||
"util/Log.cpp"
|
||||
"tunnel/TransitTunnel.cpp"
|
||||
"tunnel/Tunnel.cpp"
|
||||
"tunnel/TunnelGateway.cpp"
|
||||
"tunnel/TunnelEndpoint.cpp"
|
||||
"tunnel/TunnelPool.cpp"
|
||||
"tunnel/TunnelCrypto.cpp"
|
||||
"AddressBook.cpp"
|
||||
"Garlic.cpp"
|
||||
"I2NPProtocol.cpp"
|
||||
"Identity.cpp"
|
||||
"LeaseSet.cpp"
|
||||
"NetDbRequests.cpp"
|
||||
"NetworkDatabase.cpp"
|
||||
"Profiling.cpp"
|
||||
"RouterContext.cpp"
|
||||
"RouterInfo.cpp"
|
||||
"Streaming.cpp"
|
||||
"Destination.cpp"
|
||||
"Datagram.cpp"
|
||||
"UPnP.cpp"
|
||||
"Reseed.cpp"
|
||||
)
|
||||
|
||||
set(EDDSA_SRC
|
||||
"crypto/ed25519/fe_0.cpp"
|
||||
"crypto/ed25519/fe_1.cpp"
|
||||
"crypto/ed25519/fe_add.cpp"
|
||||
"crypto/ed25519/fe_cmov.cpp"
|
||||
"crypto/ed25519/fe_copy.cpp"
|
||||
"crypto/ed25519/fe_frombytes.cpp"
|
||||
"crypto/ed25519/fe_invert.cpp"
|
||||
"crypto/ed25519/fe_isnegative.cpp"
|
||||
"crypto/ed25519/fe_isnonzero.cpp"
|
||||
"crypto/ed25519/fe_mul.cpp"
|
||||
"crypto/ed25519/fe_neg.cpp"
|
||||
"crypto/ed25519/fe_pow22523.cpp"
|
||||
"crypto/ed25519/fe_sq2.cpp"
|
||||
"crypto/ed25519/fe_sq.cpp"
|
||||
"crypto/ed25519/fe_sub.cpp"
|
||||
"crypto/ed25519/fe_tobytes.cpp"
|
||||
"crypto/ed25519/ge_add.cpp"
|
||||
"crypto/ed25519/ge_double_scalarmult.cpp"
|
||||
"crypto/ed25519/ge_frombytes.cpp"
|
||||
"crypto/ed25519/ge_madd.cpp"
|
||||
"crypto/ed25519/ge_msub.cpp"
|
||||
"crypto/ed25519/ge_p1p1_to_p2.cpp"
|
||||
"crypto/ed25519/ge_p1p1_to_p3.cpp"
|
||||
"crypto/ed25519/ge_p2_0.cpp"
|
||||
"crypto/ed25519/ge_p2_dbl.cpp"
|
||||
"crypto/ed25519/ge_p3_0.cpp"
|
||||
"crypto/ed25519/ge_p3_dbl.cpp"
|
||||
"crypto/ed25519/ge_p3_tobytes.cpp"
|
||||
"crypto/ed25519/ge_p3_to_cached.cpp"
|
||||
"crypto/ed25519/ge_p3_to_p2.cpp"
|
||||
"crypto/ed25519/ge_precomp_0.cpp"
|
||||
"crypto/ed25519/ge_scalarmult_base.cpp"
|
||||
"crypto/ed25519/ge_sub.cpp"
|
||||
"crypto/ed25519/ge_tobytes.cpp"
|
||||
"crypto/ed25519/keypair.cpp"
|
||||
"crypto/ed25519/open.cpp"
|
||||
"crypto/ed25519/sc_muladd.cpp"
|
||||
"crypto/ed25519/sc_reduce.cpp"
|
||||
"crypto/ed25519/sign.cpp"
|
||||
)
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
|
@ -39,9 +82,13 @@ endif()
|
|||
|
||||
include_directories(".")
|
||||
|
||||
set(EDDSA_LIB "ed25519-ref10")
|
||||
|
||||
add_subdirectory(crypto/ed25519)
|
||||
|
||||
# Library building
|
||||
if(WITH_LIBRARY)
|
||||
add_library(${CORE_NAME} ${CORE_SRC})
|
||||
add_library(${CORE_NAME} ${CORE_SRC} ${EDDSA_SRC})
|
||||
target_link_libraries(
|
||||
${CORE_NAME} ${Boost_LIBRARIES} ${CRYPTO++_LIBRARIES}
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue