mbedtls/programs/pkey
Janos Follath 5d96a3dcde Clarify the use of ECDSA API
In the ecdsa.c sample application we don't use hashing, we use ecdsa
directly on a buffer containing plain text. Although the text explains
that it should be the message hash it still can be confusing.

Any misunderstandings here are potentially very dangerous, because ECDSA
truncates the message hash if necessary and this can lead to trivial
signature forgeries if the API is misused and the message is passed
directly to the function without hashing.

This commit adds a hash computation step to the ecdsa.c sample
application and clarification to the doxygen documentation of the
ECDSA functions involved.
2017-06-07 17:05:00 +01:00
..
CMakeLists.txt Rename project in CMake 2015-01-27 15:44:46 +00:00
dh_client.c Fix hash buffer size in pkey programs 2015-08-31 11:32:03 +02:00
dh_genprime.c Backport dh_genprime update from 2.0 2015-07-03 17:14:06 +02:00
dh_prime.txt
dh_server.c Fix hash buffer size in pkey programs 2015-08-31 11:32:03 +02:00
ecdsa.c Clarify the use of ECDSA API 2017-06-07 17:05:00 +01:00
gen_key.c Add extra compilation conditions to X.509 samples 2016-10-13 12:45:07 +01:00
key_app_writer.c Rename website and repository 2015-03-06 13:17:10 +00:00
key_app.c Rename website and repository 2015-03-06 13:17:10 +00:00
mpi_demo.c Fixed typos 2015-04-14 15:00:09 +02:00
pk_decrypt.c Rename website and repository 2015-03-06 13:17:10 +00:00
pk_encrypt.c Rename website and repository 2015-03-06 13:17:10 +00:00
pk_sign.c Fix hash buffer size in pkey programs 2015-08-31 11:32:03 +02:00
pk_verify.c Fix hash buffer size in pkey programs 2015-08-31 11:32:03 +02:00
rsa_decrypt.c Add missing stdlib.h header to rsa sample programs 2016-04-13 01:38:54 +01:00
rsa_encrypt.c Add missing stdlib.h header to rsa sample programs 2016-04-13 01:38:54 +01:00
rsa_genkey.c Rename website and repository 2015-03-06 13:17:10 +00:00
rsa_priv.txt - Smaller default values 2012-10-24 14:29:17 +00:00
rsa_pub.txt - Smaller default values 2012-10-24 14:29:17 +00:00
rsa_sign_pss.c Fix hash buffer size in pkey programs 2015-08-31 11:32:03 +02:00
rsa_sign.c Fix memory leaks in example programs. 2016-04-12 16:45:10 +01:00
rsa_verify_pss.c Fix hash buffer size in pkey programs 2015-08-31 11:32:03 +02:00
rsa_verify.c Fix memory leaks in example programs. 2016-04-12 16:45:10 +01:00