mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-12-24 19:37:48 +03:00
kex: Implement mlkem768x25519-sha256
The implementation largely follows that of sntrup761x25519-sha512. Most of the work was done by Sahana with the help of Claude, Pavol provided fixes to match specs and did a final clean up. Co-Authored-By: Sahana Prasad <sahana@redhat.com> Co-Authored-By: Pavol Žáčik <pzacik@redhat.com> Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Pavol Žáčik <pzacik@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
committed by
Jakub Jelen
parent
d307bfa239
commit
a9c8f942a5
@@ -104,6 +104,11 @@ if (OPENSSL_FOUND)
|
||||
check_function_exists(RAND_priv_bytes HAVE_OPENSSL_RAND_PRIV_BYTES)
|
||||
check_function_exists(EVP_chacha20 HAVE_OPENSSL_EVP_CHACHA20)
|
||||
|
||||
# Check for ML-KEM768 availability (OpenSSL 3.5+)
|
||||
if (OPENSSL_VERSION VERSION_GREATER_EQUAL "3.5.0")
|
||||
set(HAVE_MLKEM 1)
|
||||
endif ()
|
||||
|
||||
unset(CMAKE_REQUIRED_INCLUDES)
|
||||
unset(CMAKE_REQUIRED_LIBRARIES)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user