58d6eb5024
Removing unneeded comment
...
Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com >
2021-06-02 14:43:11 +02:00
1b1327cc0d
Merge pull request #4581 from TRodziewicz/remove_supp_for_extensions_in_pre-v3_X.509_certs
...
Remove MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3 option
2021-06-02 13:48:03 +02:00
df77624ab5
Merge pull request #4490 from TRodziewicz/Combine__SSL_<CID-TLS1_3>_PADDING_GRANULARITY_options
...
Combine _SSL_<CID-TLS1_3>_PADDING_GRANULARITY options
2021-06-02 13:47:48 +02:00
1b3b27cbb0
Merge pull request #4587 from TRodziewicz/remove_3DES_ciphersuites
...
Remove 3DES ciphersuites
2021-06-02 11:01:42 +02:00
3dafa9bda8
Merge pull request #4555 from ronald-cron-arm/m-ccm-api
...
Define CCM multi-part API
2021-06-02 09:56:43 +02:00
1483fe4c21
Document what we mean by backward compatibility
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2021-06-01 22:29:06 +02:00
3726db4750
Removes obsolete test
...
Removal of obsolete test in
test_suite_ecdh.function and corresponding
.data file.
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2021-06-01 19:03:08 +01:00
42aaf7a718
Removes component_test_new_ecdh_context in all.sh
...
Commit removes the
component_test_new_new_ecdh_context in all.sh.
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2021-06-01 17:48:40 +01:00
9f5c34cc88
Merge pull request #4596 from gilles-peskine-arm/nist_kw-null_dereference-3.0
...
Fix null pointer arithmetic in NIST_KW
2021-06-01 16:40:19 +02:00
416c46ffe5
Defines MBEDTLS_ECDH_LEGACY_CONTEXT in ecdh.h
...
Commit adds the conditional definition of
MBEDTLS_ECDH_LEGACY_CONTEXT to ecdh.h.
MBEDTLS_ECDH_LEGACY_CONTEXT is only defined
if MBEDTLS_ECP_RESTARTABLE is definied.
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2021-06-01 15:31:07 +01:00
c8901ed98d
Removes MBEDTLS_ECDH_LEGACY_CONTEXT from check_config.h
...
Commit removes MBEDTLS_ECDH_LEGACY_CONTEXT
checks from check_config.h.
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2021-06-01 15:31:07 +01:00
8f4eacaac6
Removes MBEDTLS_ECDH_LEGACY_CONTEXT from config.h
...
Commit removes the definition of
MBEDTLS_ECDH_LEGACY_CONTEXT from config.h.
Additionally removes the unset calls to
MBEDTLS_ECDH_LEGACY_CONTEXT in all.sh.
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2021-06-01 15:28:26 +01:00
e13d3083ee
Add invalid context as a possible reason for _BAD_INPUT error code
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2021-06-01 13:35:40 +02:00
fe3069b7f1
Merge pull request #4585 from mpg/cipher-aead-delayed
...
Clarify multi-part AEAD calling sequence in Cipher module
2021-06-01 12:04:19 +02:00
89ee599092
Fix null pointer arithmetic in error case
...
When mbedtls_nist_kw_wrap was called with output=NULL and out_size=0, it
performed arithmetic on the null pointer before detecting that the output
buffer is too small and returning an error code. This was unlikely to have
consequences on real-world hardware today, but it is undefined behavior and
UBSan with Clang 10 flagged it. So fix it (fix #4025 ).
Fix a similar-looking pattern in unwrap, though I haven't verified that it's
reachable there.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2021-06-01 11:22:56 +02:00
f059e74a22
Re-wording ChangeLog and reverting overzealous removal from config.h
...
Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com >
2021-06-01 11:17:07 +02:00
c01b87b820
Fix some typos
...
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2021-06-01 09:40:53 +02:00
542957d6b1
Add some API calling order documentation
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2021-06-01 09:22:05 +02:00
f668bd18df
Add migration guide for developers of CCM alternative implementation
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2021-06-01 09:07:46 +02:00
7c41cd2a7a
Split operation start and the declaration of data lengths
...
Split operation start and the declaration of data lengths
to better align with the PSA Cryptography multipart AEAD
APIs.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2021-06-01 09:07:43 +02:00
b740a617ec
Remove change log
...
Remove the change log as the changes in this PR only
affect CCM alternative implementation developers.
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2021-06-01 09:05:51 +02:00
51584c6cdb
Prefer ad to add as shorthand for additional/associated data
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2021-06-01 09:05:51 +02:00
ff92479f71
Wording improvement
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2021-06-01 09:05:51 +02:00
84cb8e0063
Add invalid mode as mbedtls_ccm_start() possible error
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2021-06-01 09:05:49 +02:00
b87fe016aa
Remove buffer overlap considerations
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2021-06-01 09:05:20 +02:00
86e6c9f860
Improve expected context state for some APIs
...
Signed-off-by: Ronald Cron <ronald.cron@arm.com >
2021-06-01 09:05:02 +02:00
22fc906d57
Add ChangeLog and migration guide for MBEDTLS_ECP_FIXED_POINT_OPTIM
...
Signed-off-by: kXuan <kxuanobj@gmail.com >
2021-06-01 14:01:59 +08:00
b2b3ec4f7a
add ecp_comb_table.py
...
ecp_comb_table.py generates comb table
Signed-off-by: kXuan <kxuanobj@gmail.com >
2021-06-01 10:02:14 +08:00
ba9cb76e9f
static initialize comb table
...
MBEDTLS_ECP_FIXED_POINT_OPTIM aims to speed up ecc multiplication performance.
We compute the comb table in runtime now. It is a costly operation.
This patch add a pre-computed table to initialize well-known curves. It speed up ECDSA signature verify process in runtime by using more ROM size.
Signed-off-by: kXuan <kxuanobj@gmail.com >
2021-06-01 10:02:13 +08:00
cd817b0630
Remove misleading comment in TLS 1.3 key schedule code
...
The implementation documentation of
```
mbedtls_ssl_tls1_3_derive_early_secrets()
```
mentioned the PSK binder key, which is misleading because the
function doesn't actually calculate it.
Signed-off-by: Hanno Becker <hanno.becker@arm.com >
2021-05-31 19:40:45 +01:00
bbd617be5f
Remove duplicated definition of ASSERT_ALLOC
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2021-05-31 20:33:17 +02:00
b2827693b5
Remove spurious dependencies on PEM
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2021-05-31 20:33:15 +02:00
231649a020
Changing the migration guide entry wording.
...
Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com >
2021-05-31 13:12:16 +02:00
4e57f4cdfd
Adding removed defines to check_config.h and fixing the migration guide entry.
...
Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com >
2021-05-31 12:58:25 +02:00
6d84e917bb
Merge pull request #4568 from creiter32/to_upstream/csr_critical_extensions
...
Expose flag for critical extensions
2021-05-31 12:46:59 +02:00
ee57ebe553
Add ChangeLog and migration guide entries
...
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2021-05-31 12:25:01 +02:00
42eba1a274
Fix a typo
...
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2021-05-31 12:14:02 +02:00
3670e387dc
Remove 3DES ciphersuites
...
Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com >
2021-05-31 12:11:53 +02:00
daae68d9b2
Merge pull request #4565 from mpg/fixup-changelog-4495-4286
...
Fix the "rm (D)TLS 1.0 1.1" ChangeLog entry
2021-05-31 11:37:04 +02:00
c42a0be00b
Clarify calling sequence in the Cipher layer
...
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2021-05-31 11:13:35 +02:00
ea62d2f391
Merge pull request #4369 from hanno-arm/relax_psk_config
...
Implement relaxed semantics for static PSK configuration in Mbed TLS 3.0
2021-05-31 10:03:56 +02:00
dee975af7d
Remove MBEDTLS_X509_ALLOW_EXTENSIONS_NON_V3 option
...
Remove define
Add ChangeLog file and migration guide entry
Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com >
2021-05-28 15:27:01 +02:00
358e588b32
Temporary addition of an empty assert to satisfy the compiler
...
Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com >
2021-05-28 12:58:46 +02:00
bcd2b4b972
Addition of ommited part of code review follow-up
...
Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com >
2021-05-28 12:56:57 +02:00
f1eb425782
Merge pull request #4469 from xiaoxiang781216/padlock
...
aes: Check aes_padlock_ace > 0 before calling padlock
2021-05-28 11:06:40 +02:00
2bec09c113
Fix typo in migration guide
...
Signed-off-by: Hanno Becker <hanno.becker@arm.com >
2021-05-28 09:54:31 +01:00
934ab00f77
Minor improvement of ChangeLog wording
...
Signed-off-by: Hanno Becker <hanno.becker@arm.com >
2021-05-28 09:52:54 +01:00
c44a1d522a
Merge pull request #4507 from Venafi/userid-oid
...
Add OID for User ID
2021-05-28 10:43:41 +02:00
196739b478
Change wording in documentation of PSK configuration
...
Signed-off-by: Hanno Becker <hanno.becker@arm.com >
2021-05-28 05:33:14 +01:00
9b279f98bc
Removal of the rsa_invalid_param() from the test
...
Signed-off-by: TRodziewicz <tomasz.rodziewicz@mobica.com >
2021-05-27 17:38:53 +02:00