mbedtls/library
Gilles Peskine b699f07af0 Switch psa_{get,set}_domain_parameters to attributes
Change psa_get_domain_parameters() and psa_set_domain_parameters() to
access a psa_key_attributes_t structure rather than a key handle.

In psa_get_key_attributes(), treat the RSA public exponent as a domain
parameter and read it out. This is in preparation for removing the
`extra` parameter of psa_generate_key() and setting the RSA public
exponent for key generation via domain parameters.

In this commit, the default public exponent 65537 is not treated
specially, which allows us to verify that test code that should be
calling psa_reset_key_attributes() after retrieving the attributes of
an RSA key is doing so properly (if it wasn't, there would be a memory
leak), even if the test data happens to use an RSA key with the
default public exponent.
2019-04-26 17:37:08 +02:00
..
.gitignore
aes.c
aesni.c
arc4.c
aria.c
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
camellia.c
ccm.c
certs.c Use certificates from data_files and refer them 2019-02-12 15:30:26 +02:00
chacha20.c
chachapoly.c
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
debug.c Merge remote-tracking branch 'origin/pr/1818' into development 2019-03-05 16:27:38 +00:00
des.c
dhm.c
ecdh.c Fix ECDH secret export for Mongomery curves 2019-02-26 16:49:52 +00:00
ecdsa.c
ecjpake.c
ecp_curves.c
ecp.c Merge remote-tracking branch 'tls/development' into development 2019-03-28 16:02:25 +00:00
entropy_poll.c
entropy.c
error.c
gcm.c
havege.c
hkdf.c
hmac_drbg.c
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
oid.c Add certificate policy of type any policy id 2019-03-26 14:41:07 +02:00
padlock.c
pem.c
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
pkcs11.c
pkcs12.c
pkparse.c
pkwrite.c Merge development-psa commit 80b5662 into development-psa-merged branch 2019-02-05 06:02:51 -05:00
platform_util.c
platform.c
poly1305.c
psa_crypto_core.h Support encoding an owner in key file IDs 2019-02-20 12:52:07 +01:00
psa_crypto_invasive.h
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 Fix build errors with MBEDTLS_PSA_CRYPTO_STORAGE_C disabled 2019-04-25 17:42:32 +02:00
psa_crypto_slot_management.h Reject invalid key ids/lifetimes in attribute-based creation 2019-04-24 15:46:04 +02:00
psa_crypto_storage.c Fix loading of 0-sized key on platforms where malloc(0)=NULL 2019-04-25 17:42:32 +02:00
psa_crypto_storage.h Gate entropy injection through a dedicated configuration option 2019-03-15 11:15:21 +01:00
psa_crypto.c Switch psa_{get,set}_domain_parameters to attributes 2019-04-26 17:37:08 +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
sha256.c
sha512.c
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
x509.c
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