Jaeden Amero
b090d5dc2a
Merge pull request #231 from dgreen-arm/api-to-development
...
Merge psa api branch into development
2019-08-21 11:50:57 +01:00
Darryl Green
ecfd050633
Merge pull request #230 from AndrzejKurek/remove-double-underscore
...
Remove double underscores from macro and add a check for it
2019-08-21 11:23:32 +01:00
Darryl Green
572a16e694
Merge branch 'psa-api-1.0-beta' into api-to-development
2019-08-21 10:31:12 +01:00
Unknown
712f7a804e
Add a check for double underscores in identifiers in check-names.sh
2019-08-21 03:34:00 -04:00
Unknown
e2e19959d7
Rename AEAD macro to not use double underscores
...
This pattern (identifiers containing a double underscore anywhere in them)
is reserved.
2019-08-21 03:33:04 -04:00
Janos Follath
20082cb488
Correct 3rdparty include path for Mbed TLS
2019-08-20 15:18:19 +01:00
Christoph M. Wintersteiger
c25df6848b
Fix code style
2019-08-19 13:37:46 +01:00
Gilles Peskine
09a24b3dda
Add Everest components to all.sh
...
Test a native build and a 32-bit build. For variety, the native build
is with CMake and clang, and the 32-bit build is with GNU make and
gcc.
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
0969eeecbc
3rdparty: Fix Everest's mbedtls_x25519_get_params
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
19d5c80c33
3rdparty: Added config checks for Everest
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
6212617097
Fix macros in benchmark.c
...
#2124 may suffer from the same problem.
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
f8d4c883a7
Update generated files
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
7b747fcdc9
3rdparty: fix inclusion order of CMakeLists.txt
...
This is so that third-party modules pick up the INSTALL_MBEDTLS_HEADERS variable.
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
d64e1e1e1c
3rdparty: Fix Everest header installation
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
ec70771a71
3rdparty: fix paths in Everest build scripts
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
26b98e12c5
3rdparty: Fix newlines and trailing whitespace
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
6e0cac1f57
3rdparty: Fix Everest build to not depend on build-time macros
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
2c69d10bac
3rdparty: Adjust use of Everest in ecp_supported_curves
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
7ec367ffc1
3rdparty: don't claim armcc support in Everest Readme.md
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
cf5603f712
ECDH: Fix inclusion of platform.h for proper use of MBEDTLS_ERR_PLATFORM_FEATURE_UNSUPPORTED
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
3b58700d38
ECDH: Fix use of ECDH API in full handshake benchmark
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
bfc8eb2b78
Revert "ECDH: Fix memory leaks due to context re-initialization"
...
This reverts commit 2340f03c597b923c0f427c76b4c3d2cd11638410.
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
d8c45d5550
Revert "ECDH: Fix context initialization"
...
This reverts commit 4a43d14146220e8550d6ad87cb798f74ce9ee209.
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
30bc9cebda
ECDH: Fix context initialization
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
e7e74ba33b
3rdparty: Improve Everest README.md
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
1b73a71ac1
3rdparty: Fix .gitignore
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
8592958205
ECDH: Use macro-based sizes in Everest x25519
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
2f563e3482
ECDH: Fix memory leaks due to context re-initialization
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
2be66d44a5
ECDH: Remove duplicate lines of code
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
ac0e64df68
ECDH: Removed unnecessary calls to mbedtls_ecp_group_load in ECDH benchmark
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
efdf4d7baa
ECDH: Fix Everest x25519 make_public
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
537f41ebbf
3rdparty: Updated comments for Everest x25519
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
088ef49681
3rdparty: Make proper use of mbedtls_platform_zeroize in Everest x25519
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
fb779f1700
3rdparty: Pull Everest x25519 key size into macro
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
f21aba4cb2
3rdparty: Fix Everest platform detection for CMake
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
cb31073e1c
ECP: add Curve448 to ecp_supported_curves
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
4061f04acd
ECDH: Remove unnecessary #include
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
737df0c755
Fix file permissions
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
9b5e77e2e3
3rdparty: Use LOCAL_FLAGS instead of CFLAGS
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
2d4725f204
3rdparty: Rename THIRDPARTY_OBJECTS
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
3ff60bcf1a
ECDH/ECDSA: Fix indentation
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
ef17e3b59c
ECDSA: Fix formatting
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
5833de7ab2
3rdparty: Update description of MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
f43e1d942f
3rdparty: Remove unnecessary copy of license file
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
20819afcad
3rdparty: Adjust .gitignore
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
02174b90dc
3rdparty: Fix Makefile coding conventions
2019-08-19 13:37:46 +01:00
Christoph M. Wintersteiger
41fb2c05e8
ECDSA: Refactor return value checks for mbedtls_ecdsa_can_do
2019-08-19 13:37:46 +01:00
Gilles Peskine
d2085f5a17
Document that curve lists can include partially-supported curves
...
Document that a curve returned by mbedtls_ecp_curve_list() or
mbedtls_ecp_grp_id_list() may lack support for ECDH or ECDSA.
Add a corresponding changelog entry, under "API Changes" because we
have changed the behavior: formerly, these functions skipped ECDH-only
curves, although this was not documented.
2019-08-19 13:37:46 +01:00
Gilles Peskine
20b3ef3cad
Add mbedtls_ecdh_can_do
...
All curves can currently do ECDH, but to make the API symmetric and
future-proof, add mbedtls_ecdh_can_do() to go with mbedtls_ecdsa_can_do().
2019-08-19 13:37:46 +01:00
Gilles Peskine
1fdf2c2d1c
Fix build with gcc -Wshadow
2019-08-19 13:37:46 +01:00