Harry Ramsey
468c0aede9
Revert move of version.h to tf-psa-crypto libray
...
This commit moves version.h back into /include/mbedtls from
tf-psa-crypto/drivers/builtin/include. This commit also changes the
necessary build files and scripts to generate version_features.c
Signed-off-by: Harry Ramsey <harry.ramsey@arm.com >
2024-10-04 13:37:42 +01:00
David Horstmann
b268d270ed
Merge pull request #9413 from sezrab/split_numeric_string_conversions_oid-development
...
Split numeric string conversions out of the OID module
2024-09-26 12:50:37 +00:00
Sam Berry
f8db5b6f72
Move the function declarations to x509.h
...
This commit moves the function declarations for
mbedtls_oid_get_numeric_string and mbedtls_oid_from_numeric_string from
oid.h to x509.h.
Signed-off-by: Sam Berry <sam.berry@arm.com >
2024-09-18 21:23:09 +01:00
Janos Follath
6872c5f67d
Make mbedtls_mpi_exp_mod_unsafe internal
...
Signed-off-by: Janos Follath <janos.follath@arm.com >
2024-09-05 10:46:53 +02:00
Janos Follath
5b69fade31
Move MBEDTLS_MPI_IS_* macros to bignum_core.h
...
These macros are not part of any public or internal API, ideally they
would be defined in the source files. The reason to put them in
bignum_core.h to avoid duplication as macros for this purpose are
needed in both bignum.c and bignum_core.c.
Signed-off-by: Janos Follath <janos.follath@arm.com >
2024-09-05 10:39:04 +02:00
Janos Follath
9a8b1f4a4c
Make _optionally_safe functions internal
...
The complexity of having functions whose security properties depend on a
runtime argument can be dangerous. Limit misuse by making any such
functions local.
Signed-off-by: Janos Follath <janos.follath@arm.com >
2024-09-05 10:39:02 +02:00
Janos Follath
91537eb09d
Improve documentation of MBEDTLS_MPI_IS_PUBLIC
...
Signed-off-by: Janos Follath <janos.follath@arm.com >
2024-09-05 10:39:01 +02:00
Manuel Pégourié-Gonnard
7305002799
Add optionally unsafe variant of exp_mod for perf
...
Attempt to partially solve the performance regression in 3.6.0 without
adding too much code size.
Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com >
2024-09-05 10:38:58 +02:00
Gabor Mezei
c15ef93aa5
Replace MBEDTLS_MD_CAN_SHA512 with PSA_WANT_ALG_SHA_512
...
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com >
2024-08-28 18:20:25 +02:00
Bence Szépkúti
88f3dd9f78
Merge pull request #9402 from tom-daubney-arm/remove_function_level_alt_interface
...
Remove function level alt interface
2024-08-09 17:59:51 +00:00
Gilles Peskine
aacbc622a4
Merge pull request #9453 from gilles-peskine-arm/psa-keystore-dynamic-prep-4.0
...
Prepare for dynamic key store
2024-08-09 08:00:06 +00:00
Gilles Peskine
1eaea51978
Fix copypasta
...
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-08-07 12:39:05 +02:00
Gilles Peskine
0e3704f0a0
Reorder blocks to avoid double negations
...
Convert `#if !... A #else B #endif` to `#if ... B #else A`. No semantic change.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-08-07 12:39:05 +02:00
Gilles Peskine
bdd16d4cb1
Make it possible to enable CTR_DRBG/PSA without a PSA AES driver
...
Make it possible, but not officially supported, to switch the CTR_DRBG
module to PSA mode even if MBEDTLS_AES_C is defined. This is not really
useful in practice, but is convenient to test the PSA mode without setting
up drivers.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com >
2024-08-07 12:39:05 +02:00
Thomas Daubney
7070d26fa0
Make mbedtls_internal_sha512_process static
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-08-06 15:20:07 +01:00
Thomas Daubney
bfe1b67ec5
Make mbedtls_internal_sha256_process static
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-08-06 15:20:07 +01:00
Thomas Daubney
ae5f8cc253
Restore SHA256 & SHA512 prototypes
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-08-06 15:20:07 +01:00
Thomas Daubney
3e0273f41a
Internalise functions flagged as internal
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-08-06 15:20:07 +01:00
Thomas Daubney
4864424fea
Remove MBEDTLS_ECDSA_SIGN_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-08-06 15:20:06 +01:00
Thomas Daubney
e3013da240
Remove MBEDTLS_ECDSA_VERIFY_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-08-06 15:20:06 +01:00
Thomas Daubney
7c0b4adfa2
Remove MBEDTLS_AES_DECRYPT_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-08-06 15:20:03 +01:00
Thomas Daubney
6cf05f9322
Remove MBEDTLS_AES_ENCRYPT_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-08-06 15:15:51 +01:00
Thomas Daubney
43874e0a84
Remove MBEDTLS_DES_SETKEY_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-08-05 15:56:09 +01:00
Elena Uziunaite
8dde3b3dec
Replace MBEDTLS_PK_HAVE_ECC_KEYS with PSA_WANT_KEY_TYPE_ECC_PUBLIC_KEY
...
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com >
2024-08-05 15:41:58 +01:00
Elena Uziunaite
87e0550890
Replace MBEDTLS_PSA_UTIL_HAVE_ECDSA with PSA_HAVE_ALG_SOME_ECDSA
...
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com >
2024-07-29 12:15:22 +01:00
Elena Uziunaite
665eda7031
Introduce crypto_adjust_config_derived.h
...
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com >
2024-07-29 12:15:22 +01:00
Paul Elliott
3962a38fa6
Merge pull request #9287 from Wenxing-hou/fix_some_typo
...
Fix some typo for include folder
2024-07-17 13:11:45 +00:00
Thomas Daubney
39b5c8ad34
Remove further docs notes
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-15 12:15:32 +01:00
Thomas Daubney
75246c0bea
Remove irrelevant documentation notes
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-15 12:15:32 +01:00
Thomas Daubney
25bcf27c1a
Remove MBEDTLS_SHA512_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-15 12:15:29 +01:00
Thomas Daubney
b248a93b3d
Remove MBEDTLS_MD5_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-15 12:15:06 +01:00
Thomas Daubney
efc65e1168
Remove MBEDTLS_CMAC_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-15 12:14:43 +01:00
Thomas Daubney
027535c8a5
Remove MBEDTLS_SHA256_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-15 12:13:45 +01:00
Thomas Daubney
30c7701a1d
Remove MBEDTLS_RIPEMD160_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-15 12:13:22 +01:00
Thomas Daubney
2cd12de614
Remove MBEDTLS_SHA1_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-15 12:05:07 +01:00
Bence Szépkúti
f974bff38c
Merge pull request #9259 from tom-daubney-arm/remove_aes-like_alt_interface
...
Remove AES-like alt interface
2024-07-12 18:33:09 +00:00
Bence Szépkúti
3f40127db1
Merge pull request #9213 from eleuzi01/replace-mbedtls-md-can-sha3-384
...
Replace MBEDTLS_MD_CAN_SHA3_384 with PSA_WANT_ALG_SHA3_384
2024-07-12 16:32:48 +00:00
Thomas Daubney
25e2be16db
Remove MBEDTLS_NIST_KW_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-12 16:15:55 +01:00
Thomas Daubney
a9ea6f8dd2
Remove MBEDTLS_DES_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-12 16:15:55 +01:00
Thomas Daubney
064f1df98f
Remove MBEDTLS_ARIA_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-12 16:15:51 +01:00
Thomas Daubney
e9fe311ea6
Remove MBEDTLS_CAMELLIA_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-12 16:15:34 +01:00
Thomas Daubney
c7cb810c22
Remove MBEDTLS_GCM_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-12 16:15:07 +01:00
Thomas Daubney
b4914cfeb5
Remove MBEDTLS_CCM_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-12 16:15:04 +01:00
Thomas Daubney
4137609776
Remove MBEDTLS_AES_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-12 16:13:37 +01:00
Elena Uziunaite
7a507d229b
Replace MBEDTLS_MD_CAN_SHA3_384 in md.h
...
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com >
2024-07-12 17:18:31 +03:00
Bence Szépkúti
3f2d9b6a4d
Merge pull request #9268 from tom-daubney-arm/remove_symmetric_crypto_alt_interface
...
Remove symmetric crypto alt interface
2024-07-12 13:27:04 +00:00
Elena Uziunaite
9a8a9d3a42
Replace MBEDTLS_MD_CAN_SHA3_224 in md.h
...
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com >
2024-07-12 11:28:03 +03:00
Wenxing Hou
b4d03cc179
Fix some typo for include folder
...
Signed-off-by: Wenxing Hou <wenxing.hou@intel.com >
2024-07-12 15:16:33 +08:00
Elena Uziunaite
4e6a3681e1
Replace MBEDTLS_MD_CAN_SHA256 in md.h, ssl.h, and entropy.h
...
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com >
2024-07-11 11:13:35 +03:00
Thomas Daubney
f60ff02cf3
Remove MBEDTLS_CHACHA20_ALT
...
Signed-off-by: Thomas Daubney <thomas.daubney@arm.com >
2024-07-11 09:13:28 +01:00