mbedtls/library
Jaeden Amero 6ffac75995 x509write_csr: Reduce stack usage of mbedtls_x509write_csr_pem()
Using 4096 bytes of stack for the temporary buffer used for holding a
throw-away DER-formatted CSR limits the portability of generating
certificate signing requests to only devices with lots of stack space.
To increase portability, use the mbedtls_pem_write_buffer() in-place
capability instead, using the same buffer for input and output. This
works since the DER encoding for some given data is always smaller than
that same data PEM-encoded.

PEM format is desirable to use even on stack-constrained devices as the
format is easy to work with (for example, copy-pasting from a tiny
device's serial console output, for CSRs generated on tiny devices
without the private key leaving said tiny device).
2019-11-13 14:29:38 +00:00
..
.gitignore
certs.c Add support for all SHA modes in cert_write 2019-07-14 09:17:57 +03:00
CMakeLists.txt Bump Mbed TLS version to 2.19.1 2019-09-18 13:42:36 +01:00
debug.c Merge remote-tracking branch 'origin/pr/1818' into development 2019-03-05 16:27:38 +00:00
error.c Update error.c after a crypto submodule update 2019-10-04 19:23:00 +02:00
Makefile Makefile: add path prefixes to other versions of libmbedcrypto library 2019-10-08 10:10:43 -04:00
net_sockets.c Added mbedtls_net_close and use it in ssl_fork_server to correctly 2019-08-23 10:57:03 +02:00
pkcs11.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 Make calc_verify() return the length as well 2019-08-23 12:45:33 +03:00
ssl_cookie.c
ssl_srv.c Make calc_verify() return the length as well 2019-08-23 12:45:33 +03:00
ssl_ticket.c Move session save/load function to ssl_tls.c 2019-08-23 12:48:41 +03:00
ssl_tls.c Fix mbedtls_ssl_check_record usage with ext buf 2019-10-29 13:51:37 +02:00
version.c
version_features.c Add new config MBEDTLS_SSL_CONTEXT_SERIALIZATION 2019-08-23 12:52:29 +03:00
x509.c Improve documentation of mbedtls_x509_get_ext() 2019-06-04 13:59:55 +01:00
x509_create.c Break overly long line in library/x509_create.c 2018-11-02 10:52:38 +00:00
x509_crl.c Always return a high-level error code from X.509 module 2019-06-04 13:59:48 +01:00
x509_crt.c Fix uninitialized variable in x509_crt 2019-08-30 14:48:36 +03:00
x509_csr.c Merge development commit 8e76332 into development-psa 2019-01-31 08:20:20 -05:00
x509write_crt.c Merge remote-tracking branch 'origin/development' into development-restricted 2019-07-10 08:46:54 +01:00
x509write_csr.c x509write_csr: Reduce stack usage of mbedtls_x509write_csr_pem() 2019-11-13 14:29:38 +00:00