-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
126: Upgrading mbedtls to version 2.24.0 r=jethrogb a=raoulstrackx Upgrading mbedtls to latest version Co-authored-by: Raoul Strackx <[email protected]> Co-authored-by: Vardhan Thigle <[email protected]>
- Loading branch information
Showing
1,303 changed files
with
78,951 additions
and
195,571 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "mbedtls-sys-auto" | ||
version = "2.18.5" | ||
version = "2.24.0" | ||
authors = ["Jethro Beekman <[email protected]>"] | ||
build = "build/build.rs" | ||
license = "Apache-2.0/GPL-2.0+" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
list (APPEND thirdparty_src) | ||
list (APPEND thirdparty_lib) | ||
list (APPEND thirdparty_inc_public) | ||
list (APPEND thirdparty_inc) | ||
list (APPEND thirdparty_def) | ||
|
||
execute_process(COMMAND ${MBEDTLS_PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/../scripts/config.py -f ${CMAKE_CURRENT_SOURCE_DIR}/../include/mbedtls/config.h get MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED RESULT_VARIABLE result) | ||
|
||
if(${result} EQUAL 0) | ||
add_subdirectory(everest) | ||
endif() | ||
|
||
set(thirdparty_src ${thirdparty_src} PARENT_SCOPE) | ||
set(thirdparty_lib ${thirdparty_lib} PARENT_SCOPE) | ||
set(thirdparty_inc_public ${thirdparty_inc_public} PARENT_SCOPE) | ||
set(thirdparty_inc ${thirdparty_inc} PARENT_SCOPE) | ||
set(thirdparty_def ${thirdparty_def} PARENT_SCOPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
THIRDPARTY_DIR = $(dir $(lastword $(MAKEFILE_LIST))) | ||
include $(THIRDPARTY_DIR)/everest/Makefile.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
*.o | ||
Makefile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
list (APPEND everest_src) | ||
list (APPEND everest_inc_public) | ||
list (APPEND everest_inc) | ||
list (APPEND everest_def) | ||
|
||
set(everest_src | ||
${CMAKE_CURRENT_SOURCE_DIR}/library/everest.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/library/x25519.c | ||
${CMAKE_CURRENT_SOURCE_DIR}/library/Hacl_Curve25519_joined.c | ||
) | ||
|
||
list(APPEND everest_inc_public ${CMAKE_CURRENT_SOURCE_DIR}/include) | ||
list(APPEND everest_inc ${CMAKE_CURRENT_SOURCE_DIR}/include/everest ${CMAKE_CURRENT_SOURCE_DIR}/include/everest/kremlib) | ||
|
||
if(INSTALL_MBEDTLS_HEADERS) | ||
|
||
install(DIRECTORY include/everest | ||
DESTINATION include | ||
FILE_PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ | ||
DIRECTORY_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE | ||
FILES_MATCHING PATTERN "*.h") | ||
|
||
endif(INSTALL_MBEDTLS_HEADERS) | ||
|
||
set(thirdparty_src ${thirdparty_src} ${everest_src} PARENT_SCOPE) | ||
set(thirdparty_inc_public ${thirdparty_inc_public} ${everest_inc_public} PARENT_SCOPE) | ||
set(thirdparty_inc ${thirdparty_inc} ${everest_inc} PARENT_SCOPE) | ||
set(thirdparty_def ${thirdparty_def} ${everest_def} PARENT_SCOPE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
THIRDPARTY_INCLUDES+=-I../3rdparty/everest/include -I../3rdparty/everest/include/everest -I../3rdparty/everest/include/everest/kremlib | ||
|
||
THIRDPARTY_CRYPTO_OBJECTS+= \ | ||
../3rdparty/everest/library/everest.o \ | ||
../3rdparty/everest/library/x25519.o \ | ||
../3rdparty/everest/library/Hacl_Curve25519_joined.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
The files in this directory stem from [Project Everest](https://project-everest.github.io/) and are distributed under the Apache 2.0 license. | ||
|
||
This is a formally verified implementation of Curve25519-based handshakes. The C code is automatically derived from the (verified) [original implementation](https://github.com/project-everest/hacl-star/tree/master/code/curve25519) in the [F* language](https://github.com/fstarlang/fstar) by [KreMLin](https://github.com/fstarlang/kremlin). In addition to the improved safety and security of the implementation, it is also significantly faster than the default implementation of Curve25519 in mbedTLS. | ||
|
||
The caveat is that not all platforms are supported, although the version in `everest/library/legacy` should work on most systems. The main issue is that some platforms do not provide a 128-bit integer type and KreMLin therefore has to use additional (also verified) code to simulate them, resulting in less of a performance gain overall. Explictly supported platforms are currently `x86` and `x86_64` using gcc or clang, and Visual C (2010 and later). |
21 changes: 21 additions & 0 deletions
21
mbedtls-sys/vendor/3rdparty/everest/include/everest/Hacl_Curve25519.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* Copyright (c) INRIA and Microsoft Corporation. All rights reserved. | ||
Licensed under the Apache 2.0 License. */ | ||
|
||
/* This file was generated by KreMLin <https://github.com/FStarLang/kremlin> | ||
* KreMLin invocation: /mnt/e/everest/verify/kremlin/krml -fc89 -fparentheses -fno-shadow -header /mnt/e/everest/verify/hdrcLh -minimal -fbuiltin-uint128 -fc89 -fparentheses -fno-shadow -header /mnt/e/everest/verify/hdrcLh -minimal -I /mnt/e/everest/verify/hacl-star/code/lib/kremlin -I /mnt/e/everest/verify/kremlin/kremlib/compat -I /mnt/e/everest/verify/hacl-star/specs -I /mnt/e/everest/verify/hacl-star/specs/old -I . -ccopt -march=native -verbose -ldopt -flto -tmpdir x25519-c -I ../bignum -bundle Hacl.Curve25519=* -minimal -add-include "kremlib.h" -skip-compilation x25519-c/out.krml -o x25519-c/Hacl_Curve25519.c | ||
* F* version: 059db0c8 | ||
* KreMLin version: 916c37ac | ||
*/ | ||
|
||
|
||
|
||
#ifndef __Hacl_Curve25519_H | ||
#define __Hacl_Curve25519_H | ||
|
||
|
||
#include "kremlib.h" | ||
|
||
void Hacl_Curve25519_crypto_scalarmult(uint8_t *mypublic, uint8_t *secret, uint8_t *basepoint); | ||
|
||
#define __Hacl_Curve25519_H_DEFINED | ||
#endif |
Oops, something went wrong.