mbedtls/library
Valerio Setti 34f6755b34 pkparse: add new function for deriving public key from private using PSA
Instead of using the legacy mbedtls_ecp_mul() function which makes use of
ECP's math, this commit adds a new function named pk_derive_public_key()
which implements the same behavior using PSA functions.
The flow is simple:
- import the private key into PSA
- export its public part

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
2023-04-07 08:45:34 +02:00
..
.gitignore
aes.c AESNI: Overhaul implementation selection 2023-03-16 17:21:33 +01:00
aesce.c Merge pull request #6918 from yuhaoth/pr/add-gcm-with-armv8-crypto-extension 2023-03-20 14:45:14 +00:00
aesce.h Merge pull request #6918 from yuhaoth/pr/add-gcm-with-armv8-crypto-extension 2023-03-20 14:45:14 +00:00
aesni.c AESNI: Overhaul implementation selection 2023-03-16 17:21:33 +01:00
aesni.h Fix preprocessor conditional 2023-03-17 17:31:18 +01:00
alignment.h Fix mbedtls_bswap64() on 32-bit systems 2023-03-08 13:23:24 +00:00
aria.c
asn1parse.c
asn1write.c
base64.c
bignum.c Fix IAR Warnings 2023-02-13 15:35:35 +00:00
bignum_core.c
bignum_core.h Fix typos 2023-03-07 11:39:52 +00:00
bignum_mod.c
bignum_mod.h Fix typos in doxygen commands in new bignum modules 2023-02-01 08:43:54 +00:00
bignum_mod_raw.c Merge pull request #6941 from gabor-mezei-arm/6375_quasi-reduction_function 2023-01-31 11:25:25 +01:00
bignum_mod_raw.h Merge pull request #6957 from tom-cosgrove-arm/fix-spelling-of-doxygen-return 2023-01-24 21:56:45 +01:00
bignum_mod_raw_invasive.h
bn_mul.h
camellia.c
ccm.c Fix use of sizeof without brackets 2023-02-02 12:40:50 +00:00
chacha20.c
chachapoly.c
check_crypto_config.h
cipher.c
cipher_wrap.c
cipher_wrap.h
cmac.c
CMakeLists.txt Bump library, libcrypto and libx509 versions 2023-03-23 10:57:39 +00:00
common.h Have MBEDTLS_STATIC_ASSERT() match current development more closely 2023-03-14 12:03:47 +00:00
constant_time.c Unify PSA to Mbed TLS error translation 2023-03-03 05:23:44 -05:00
constant_time_internal.h
constant_time_invasive.h
ctr_drbg.c Remove redundant SIZE_MAX guards 2023-02-10 16:03:44 +00:00
debug.c
des.c
dhm.c
ecdh.c
ecdsa.c Make ECDSA restartable sign and verify functions public 2023-02-15 23:34:29 +00:00
ecjpake.c ECJPAKE: use MD_CAN macros 2023-03-21 16:28:00 +01:00
ecp.c ecp: revert changes to ECP module and test suite 2023-04-04 10:22:59 +02:00
ecp_curves.c Remove obsolete ecp_fix_negative function 2023-03-28 18:43:07 +02:00
ecp_internal_alt.h
ecp_invasive.h Remove obsolete ecp_fix_negative function 2023-03-28 18:43:07 +02:00
entropy.c Use MD-light in entropy.c 2023-03-24 10:43:40 +01:00
entropy_poll.c
entropy_poll.h
gcm.c Merge branch 'development-restricted' into mbedtls-3.4.0rc0-pr 2023-03-21 15:35:17 +00:00
hash_info.c Remove legacy_or_psa.h 2023-03-21 16:29:31 +01:00
hash_info.h Unify PSA to Mbed TLS error translation 2023-03-03 05:23:44 -05:00
hkdf.c
hmac_drbg.c Fix instances of old feature macros being used 2023-03-24 10:43:40 +01:00
lmots.c Unify PSA to Mbed TLS error translation 2023-03-03 05:23:44 -05:00
lmots.h Unify PSA to Mbed TLS error translation 2023-03-03 05:23:44 -05:00
lms.c Unify PSA to Mbed TLS error translation 2023-03-03 05:23:44 -05:00
Makefile Bump library, libcrypto and libx509 versions 2023-03-23 10:57:39 +00:00
md.c Rename internal function to something clearer 2023-03-16 09:48:20 +01:00
md5.c
md_wrap.h
memory_buffer_alloc.c
mps_common.h
mps_error.h
mps_reader.c
mps_reader.h
mps_trace.c
mps_trace.h
net_sockets.c
nist_kw.c
oid.c Remove legacy_or_psa.h 2023-03-21 16:29:31 +01:00
padlock.c
padlock.h
pem.c Remove legacy_or_psa.h 2023-03-21 16:29:31 +01:00
pk.c Unify PSA to Mbed TLS error translation 2023-03-03 05:23:44 -05:00
pk_wrap.c pk_wrap: minor code optimizations 2023-04-07 08:37:46 +02:00
pk_wrap.h Unify PSA to Mbed TLS error translation 2023-03-03 05:23:44 -05:00
pkcs5.c PKCS5: use MD_CAN macros 2023-03-21 16:28:00 +01:00
pkcs7.c Update wording in comments 2023-03-13 12:15:49 +00:00
pkcs12.c PKCS12: always use MD light 2023-03-21 16:28:00 +01:00
pkparse.c pkparse: add new function for deriving public key from private using PSA 2023-04-07 08:45:34 +02:00
pkwrite.c
pkwrite.h
platform.c
platform_util.c Merge pull request #6891 from yuhaoth/pr/add-milliseconds-platform-function 2023-03-31 11:47:37 +01:00
poly1305.c
psa_crypto.c psa_crypto: fix guard for mbedtls_ecc_group_of_psa() 2023-03-28 16:26:47 +02:00
psa_crypto_aead.c
psa_crypto_aead.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_cipher.c
psa_crypto_cipher.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_client.c
psa_crypto_core.h Add utility function to check for drivers init 2023-03-16 09:46:51 +01:00
psa_crypto_driver_wrappers.h Merge pull request #6567 from mprse/ecjpake-driver-dispatch 2023-03-09 19:23:05 +00:00
psa_crypto_ecp.c Make mbedtls_sa_ecp_load_public_part return psa_status_t 2023-02-15 23:34:29 +00:00
psa_crypto_ecp.h Merge pull request #7098 from gilles-peskine-arm/retval-non-empty 2023-02-24 09:10:53 +00:00
psa_crypto_hash.c
psa_crypto_hash.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_invasive.h
psa_crypto_its.h
psa_crypto_mac.c
psa_crypto_mac.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_pake.c Further pake code optimizations 2023-03-08 09:54:00 +01:00
psa_crypto_pake.h Further pake code optimizations 2023-03-08 09:54:00 +01:00
psa_crypto_random_impl.h Fix entropy-related feature macros 2023-03-24 10:43:40 +01:00
psa_crypto_rsa.c psa_crypto_rsa: remove PK_WRITE_C in psa_rsa_export_key 2023-03-08 11:03:09 +01:00
psa_crypto_rsa.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_se.c Implement and use MBEDTLS_STATIC_ASSERT() 2023-03-08 14:19:51 +00:00
psa_crypto_se.h
psa_crypto_slot_management.c
psa_crypto_slot_management.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_storage.c Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_crypto_storage.h Make \retval commands non-empty 2023-02-14 19:21:09 +01:00
psa_its_file.c
psa_util.c psa_util: fix for correctly computing elements in array 2023-03-27 11:25:10 -04:00
ripemd160.c Fix use of sizeof without brackets 2023-02-02 12:40:50 +00:00
rsa.c RSA: use MD_CAN macros 2023-03-21 16:28:00 +01:00
rsa_alt_helpers.c
rsa_alt_helpers.h
sha1.c
sha256.c Improve macro naming 2023-03-14 16:03:57 +00:00
sha512.c Improve macro naming 2023-03-14 16:03:57 +00:00
ssl_cache.c ssl_cache: return the error code for mutex failure 2023-03-15 14:37:32 +08:00
ssl_ciphersuites.c Merge tag 'v3.4.0' into mbedtls-3.4.0_mergeback 2023-03-27 18:09:49 +01:00
ssl_client.c Fix code style 2023-02-21 15:39:12 +01:00
ssl_client.h
ssl_cookie.c Remove legacy_or_psa.h 2023-03-21 16:29:31 +01:00
ssl_debug_helpers.h
ssl_misc.h ssl: remove useless guard 2023-03-28 16:26:48 +02:00
ssl_msg.c Merge pull request #7171 from daverodgman/pr5527 2023-03-13 10:46:29 +00:00
ssl_ticket.c Unify PSA to Mbed TLS error translation 2023-03-03 05:23:44 -05:00
ssl_tls.c ssl_tls13: use PSA_WANT_ALG_ECDH as symbol for marking ECDH capability 2023-03-22 10:48:34 +01:00
ssl_tls12_client.c tls12_client: remove unnecessary parentheses 2023-03-28 16:26:48 +02:00
ssl_tls12_server.c ssl: remove useless guard 2023-03-28 16:26:48 +02:00
ssl_tls13_client.c ssl_tls13: use PSA_WANT_ALG_ECDH as symbol for marking ECDH capability 2023-03-22 10:48:34 +01:00
ssl_tls13_generic.c ssl_tls13: use PSA_WANT_ALG_ECDH as symbol for marking ECDH capability 2023-03-22 10:48:34 +01:00
ssl_tls13_invasive.h
ssl_tls13_keys.c ssl_tls13: use PSA_WANT_ALG_ECDH as symbol for marking ECDH capability 2023-03-22 10:48:34 +01:00
ssl_tls13_keys.h
ssl_tls13_server.c Merge tag 'v3.4.0' into mbedtls-3.4.0_mergeback 2023-03-27 18:09:49 +01:00
threading.c
timing.c
version.c
x509.c Add missing deallocation of subject alt name 2023-03-29 11:40:38 -04:00
x509_create.c
x509_crl.c
x509_crt.c Don't use lstrlenW() on Windows 2023-02-10 12:52:13 +00:00
x509_csr.c Fix code style 2023-01-26 22:30:45 +01:00
x509write_crt.c Remove legacy_or_psa.h 2023-03-21 16:29:31 +01:00
x509write_csr.c Code optimization and style fixes 2023-03-10 14:36:16 +01:00