mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 12:25:45 +01:00
bea98b4581
These examples rely on the NET module, which we want to remove. In theory we could remove just the dependency, but we decided to remove the whole example because: - They showcase some bad crypto: custom, undocumented protocol (not obviously broken though, apart from authenticating only one side); hard-coded limit of 512-bit size for the DH modulus (2048 is the recommended minimum these days); direct use of the shared secret as a key (instead of applying a KDF); encryption with ECB, custom parameters and the client not having the ability to verify them. - The programs use the DH API in the same way that TLS does, so they have limited demonstration value. - The programs only show finite-field DH, which is not used all that much these days. What people want to see is mostly ECDH.
58 lines
1.7 KiB
CMake
58 lines
1.7 KiB
CMake
add_executable(dh_genprime dh_genprime.c)
|
|
target_link_libraries(dh_genprime mbedtls)
|
|
|
|
add_executable(ecdh_curve25519 ecdh_curve25519.c)
|
|
target_link_libraries(ecdh_curve25519 mbedtls)
|
|
|
|
add_executable(ecdsa ecdsa.c)
|
|
target_link_libraries(ecdsa mbedtls)
|
|
|
|
add_executable(gen_key gen_key.c)
|
|
target_link_libraries(gen_key mbedtls)
|
|
|
|
add_executable(key_app key_app.c)
|
|
target_link_libraries(key_app mbedtls)
|
|
|
|
add_executable(key_app_writer key_app_writer.c)
|
|
target_link_libraries(key_app_writer mbedtls)
|
|
|
|
add_executable(mpi_demo mpi_demo.c)
|
|
target_link_libraries(mpi_demo mbedtls)
|
|
|
|
add_executable(rsa_genkey rsa_genkey.c)
|
|
target_link_libraries(rsa_genkey mbedtls)
|
|
|
|
add_executable(rsa_sign rsa_sign.c)
|
|
target_link_libraries(rsa_sign mbedtls)
|
|
|
|
add_executable(rsa_verify rsa_verify.c)
|
|
target_link_libraries(rsa_verify mbedtls)
|
|
|
|
add_executable(rsa_sign_pss rsa_sign_pss.c)
|
|
target_link_libraries(rsa_sign_pss mbedtls)
|
|
|
|
add_executable(rsa_verify_pss rsa_verify_pss.c)
|
|
target_link_libraries(rsa_verify_pss mbedtls)
|
|
|
|
add_executable(rsa_encrypt rsa_encrypt.c)
|
|
target_link_libraries(rsa_encrypt mbedtls)
|
|
|
|
add_executable(rsa_decrypt rsa_decrypt.c)
|
|
target_link_libraries(rsa_decrypt mbedtls)
|
|
|
|
add_executable(pk_sign pk_sign.c)
|
|
target_link_libraries(pk_sign mbedtls)
|
|
|
|
add_executable(pk_verify pk_verify.c)
|
|
target_link_libraries(pk_verify mbedtls)
|
|
|
|
add_executable(pk_encrypt pk_encrypt.c)
|
|
target_link_libraries(pk_encrypt mbedtls)
|
|
|
|
add_executable(pk_decrypt pk_decrypt.c)
|
|
target_link_libraries(pk_decrypt mbedtls)
|
|
|
|
install(TARGETS dh_genprime key_app mpi_demo rsa_genkey rsa_sign rsa_verify rsa_encrypt rsa_decrypt pk_encrypt pk_decrypt pk_sign pk_verify gen_key
|
|
DESTINATION "bin"
|
|
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
|