1
1
libssh/tests
Anderson Toshiyuki Sasaki 76f9808eb2 auth, pki: Calculate hash internally when signing/verifying
This makes pki_do_sign() and pki_signature_verify() to receive the
original input instead of the pre-calculated hash.  The hash is then
calculated internally.

The hash to be used inside the signature is decided earlier, when all
the information about the signature to be generated/verified is
available.

Simplify ssh_pki_do_sign() and ssh_srv_pki_do_sign_sessionid().

The tests were modified to use pki_do_sign() instead of
pki_do_sign_hash().

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2019-05-13 16:37:51 +02:00
..
benchmarks tests: Fix warning about expected format for printf 2016-01-19 11:31:07 +01:00
client tests: Avoid reading user configuration when running algorithm tests 2019-04-29 13:18:09 +02:00
etc tests: Fix running ssh-agent 2016-02-03 09:01:29 +01:00
fuzz threads: Automatically call ssh_init on load 2018-08-03 16:43:03 +02:00
keys tests: Verify we can authenticate using ed25519 key 2018-10-19 17:43:20 +02:00
pkd tests:pkd: Fix size comparison (payload.len is size_t) 2019-04-29 16:52:23 +02:00
server libssh: deprecate SSH_KEYTYPE_ECDSA 2019-04-17 10:21:42 +02:00
sftp_stress tests: Call ssh_session_is_known_server() 2018-06-27 09:45:35 +02:00
unittests auth, pki: Calculate hash internally when signing/verifying 2019-05-13 16:37:51 +02:00
authentication.c Add a exec test. 2009-05-04 22:30:21 +00:00
chmodtest.c Added some other junk test file 2010-05-17 20:08:11 +02:00
chroot_wrapper.c tests: Temporarily build chroot_wrapper 2017-12-15 12:00:49 +01:00
CMakeLists.txt tests: add OpenSSL includes dir for torture tests 2019-04-17 10:21:35 +02:00
cmdline.c tests: allow conditionnal execution on pattern 2015-02-02 17:34:15 +01:00
connection.c preliminary test suite 2008-03-17 02:31:22 +00:00
ctest-default.cmake tests: Do not trace sshd 2018-10-19 17:42:55 +02:00
generate.py A few test cases for benchmarks 2009-11-05 18:18:35 +01:00
ssh_ping.c tests: Add OK: and a new line to ssh_ping 2018-09-18 18:46:28 +02:00
test_exec.c tests: Call ssh_session_is_known_server() 2018-06-27 09:45:35 +02:00
test_pcap.c Sanitize libssh namespace + legacy wrappers 2010-05-14 00:51:08 +02:00
test_socket.c struct socket -> struct ssh_socket_struct +typedef 2009-12-06 22:48:56 +01:00
test_ssh_bind_accept_fd.c add mbedtls crypto support 2017-12-28 11:17:39 +01:00
test_tunnel.c tests: Call ssh_session_is_known_server() 2018-06-27 09:45:35 +02:00
tests.h preliminary test suite 2008-03-17 02:31:22 +00:00
torture_cmocka.c tests: Define LIBSSH_STATIC for torture_cmocka 2018-09-05 11:43:05 +02:00
torture_cmocka.h torture: Add assert macros for ssh return codes 2018-06-30 14:37:04 +02:00
torture_key.c tests/unittests: test ECDSA/ED25519 support 2019-04-17 10:21:42 +02:00
torture_key.h libssh: deprecate SSH_KEYTYPE_ECDSA 2019-04-17 10:21:42 +02:00
torture_pki.c tests: Include config.h in torture_pki.c 2018-11-27 11:52:12 +01:00
torture_pki.h tests: Move helper functions to a common file 2018-01-10 22:24:11 +01:00
torture.c libssh: deprecate SSH_KEYTYPE_ECDSA 2019-04-17 10:21:42 +02:00
torture.h tests: Allow to modify sshd config from the test 2019-01-09 13:15:44 +01:00
valgrind.supp valgrind: Add suppression for glibc dlopen issue 2016-01-19 11:03:52 +01:00