mbedtls/library
Gilles Peskine 87a5e565f4 Rename functions that inject key material to an allocated handle
This commit starts a migration to a new interface for key creation.
Today, the application allocates a handle, then fills its metadata,
and finally injects key material. The new interface fills metadata
into a temporary structure, and a handle is allocated at the same time
it gets filled with both metadata and key material.

This commit was obtained by moving the declaration of the old-style
functions to crypto_extra.h and renaming them with the to_handle
suffix, adding declarations for the new-style functions in crypto.h
under their new name, and running

    perl -i -pe 's/\bpsa_(import|copy|generator_import|generate)_key\b/$&_to_handle/g' library/*.c tests/suites/*.function programs/psa/*.c
    perl -i -pe 's/\bpsa_get_key_lifetime\b/$&_from_handle/g' library/*.c tests/suites/*.function programs/psa/*.c

Many functions that are specific to the old interface, and which will
not remain under the same name with the new interface, are still in
crypto.h for now.

All functional tests should still pass. The documentation may have
some broken links.
2019-04-24 15:24:45 +02:00
..
.gitignore
aes.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
aesni.c
arc4.c
aria.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
asn1parse.c
asn1write.c Add new function mbedtls_asn1_write_named_bitstring() 2019-02-28 09:36:30 +00:00
base64.c
bignum.c Merge remote-tracking branch 'restricted/pr/551' into development 2019-03-27 17:01:24 +00:00
blowfish.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
camellia.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ccm.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
certs.c Use certificates from data_files and refer them 2019-02-12 15:30:26 +02:00
chacha20.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
chachapoly.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
cipher_wrap.c
cipher.c Rename functions that inject key material to an allocated handle 2019-04-24 15:24:45 +02:00
cmac.c
CMakeLists.txt Merge remote-tracking branch 'tls/development' into development 2019-03-28 16:02:25 +00:00
ctr_drbg.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
debug.c Merge remote-tracking branch 'origin/pr/1818' into development 2019-03-05 16:27:38 +00:00
des.c
dhm.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ecdh.c Fix ECDH secret export for Mongomery curves 2019-02-26 16:49:52 +00:00
ecdsa.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ecjpake.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ecp_curves.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ecp.c Merge remote-tracking branch 'tls/development' into development 2019-03-28 16:02:25 +00:00
entropy_poll.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
entropy.c
error.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
gcm.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
havege.c
hkdf.c
hmac_drbg.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
Makefile Merge psa_crypto_storage_its into psa_crypto_storage 2019-03-15 11:15:01 +01:00
md2.c
md4.c
md5.c
md_wrap.c
md.c md: Remove dependency on X.509 2019-03-11 16:46:20 +00:00
memory_buffer_alloc.c
net_sockets.c
nist_kw.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
oid.c Add certificate policy of type any policy id 2019-03-26 14:41:07 +02:00
padlock.c
pem.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
pk_wrap.c Rename functions that inject key material to an allocated handle 2019-04-24 15:24:45 +02:00
pk.c Rename functions that inject key material to an allocated handle 2019-04-24 15:24:45 +02:00
pkcs5.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
pkcs11.c
pkcs12.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
pkparse.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
pkwrite.c Merge development-psa commit 80b5662 into development-psa-merged branch 2019-02-05 06:02:51 -05:00
platform_util.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
platform.c Merge remote-tracking branch 'origin/pr/1551' into development 2019-01-30 13:24:55 +00:00
poly1305.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
psa_crypto_core.h Support encoding an owner in key file IDs 2019-02-20 12:52:07 +01:00
psa_crypto_invasive.h Add a facility to configure entropy sources 2018-11-23 22:58:38 +01:00
psa_crypto_its.h Fix up ITS header files for internal use in crypto 2019-03-15 11:13:33 +01:00
psa_crypto_service_integration.h Add common header for crypto service integration 2019-02-19 15:09:14 +02:00
psa_crypto_slot_management.c Merge pull request #59 from gilles-peskine-arm/psa-its-64_bit_internal_key_id 2019-02-20 13:45:12 +00:00
psa_crypto_slot_management.h Document some functions in internal headers 2018-12-11 16:48:14 +01:00
psa_crypto_storage.c Fix build error with MSVC on 64-bit systems 2019-03-15 11:15:23 +01:00
psa_crypto_storage.h Gate entropy injection through a dedicated configuration option 2019-03-15 11:15:21 +01:00
psa_crypto.c Rename functions that inject key material to an allocated handle 2019-04-24 15:24:45 +02:00
psa_its_file.c Document rename_replace_existing macro 2019-04-11 14:21:14 +01:00
ripemd160.c
rsa_internal.c
rsa.c rsa: Enable use of zero-length null output 2019-02-11 03:39:51 -05:00
sha1.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
sha256.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
sha512.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
ssl_cache.c Remove peer CRT from cache if !MBEDTLS_SSL_KEEP_PEER_CERTIFICATE 2019-02-26 14:38:09 +00:00
ssl_ciphersuites.c Reduce priority of 3DES ciphersuites 2019-03-01 10:19:27 +01:00
ssl_cli.c Rename functions that inject key material to an allocated handle 2019-04-24 15:24:45 +02:00
ssl_cookie.c
ssl_srv.c Adapt client auth detection in ssl_parse_certificate_verify() 2019-02-26 14:38:09 +00:00
ssl_ticket.c Fix typo in SSL ticket documentation 2019-02-26 14:38:09 +00:00
ssl_tls.c Rename functions that inject key material to an allocated handle 2019-04-24 15:24:45 +02:00
threading.c
timing.c
version_features.c Merge remote-tracking branch 'tls/development' into development 2019-03-28 16:02:25 +00:00
version.c
x509_create.c
x509_crl.c
x509_crt.c Add raw public key buffer bounds to mbedtls_x509_crt struct 2019-02-26 14:38:09 +00:00
x509_csr.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
x509.c Fix #2370, minor typos and spelling mistakes 2019-01-24 10:37:40 +01:00
x509write_crt.c Add new function mbedtls_asn1_write_named_bitstring() 2019-02-28 09:36:30 +00:00
x509write_csr.c Add new function mbedtls_asn1_write_named_bitstring() 2019-02-28 09:36:30 +00:00
xtea.c