summaryrefslogtreecommitdiff
path: root/testsuite/rsa-encrypt-test.c
Commit message (Collapse)AuthorAgeFilesLines
* Add input check to rsa_decrypt family of functions.Niels Möller2021-06-081-6/+32
| | | | (cherry picked from commit 0ad0b5df315665250dfdaa4a1e087f4799edaefe)
* Change _rsa_sec_compute_root_tr to take a fix input size.Niels Möller2021-06-081-1/+13
| | | | | | Improves consistency with _rsa_sec_compute_root, and fixes zero-input bug. (cherry picked from commit 485b5e2820a057e873b1ba812fdb39cae4adf98c)
* Rewrite pkcs1_decrypt as a wrapper around _pkcs1_sec_decrypt_variable.Niels Möller2018-11-281-4/+6
| | | | | | * testsuite/rsa-encrypt-test.c (test_main): Fix allocation of decrypted storage. Update test of rsa_decrypt, to allow clobbering of all of the passed in message area.
* Add rsa_sec_decrypt as side-channel silent variantSimo Sorce2018-11-251-0/+24
| | | | | | | | | | | | Use side-channel silent RSA root function as well as PKCS1 padding functions. This variant accepts only a fixed length message, and returns error if the pkcs1 padding returns a different length message. The buffer is always left unchanged on error so that a TLS implementation can pre-initialize it with a random key to use on decoding error. Signed-off-by: Simo Sorce <simo@redhat.com>
* Fix signedness warning for rsa-encrypt-test.Niels Möller2016-09-031-3/+2
|
* Deleted comment.Niels Möller2015-11-151-1/+0
|
* Use rsa_compute_root_tr also in rsa_decrypt_tr.Niels Möller2015-11-151-0/+7
|
* Use size_t for bignums, rsa and dsa.Niels Möller2013-04-261-3/+3
|
* Testsuite overhaul, including proper deallocation of storage.Niels Möller2012-09-161-2/+1
|
* Implemented rsa_decrypt_tr, based on RSA blinding codeNiels Möller2012-04-091-1/+21
| | | | contributed by Nikos Mavrogiannopoulos.
* Moved all typedefs for function types to nettle-types.h. UseNiels Möller2008-11-011-1/+1
| | | | | | | | | | | | | | | | | | | | non-pointer types, so that the types can be used to declare functions. Updated all users. Rev: nettle/arcfour-meta.c:1.2 Rev: nettle/cbc.h:1.2 Rev: nettle/des-compat.c:1.2 Rev: nettle/examples/nettle-benchmark.c:1.3 Rev: nettle/examples/nettle-openssl.c:1.2 Rev: nettle/examples/rsa-encrypt.c:1.2 Rev: nettle/examples/rsa-keygen.c:1.2 Rev: nettle/nettle-internal.c:1.2 Rev: nettle/nettle-meta.h:1.2 Rev: nettle/nettle-types.h:1.2 Rev: nettle/testsuite/dsa-keygen-test.c:1.3 Rev: nettle/testsuite/rsa-encrypt-test.c:1.3 Rev: nettle/testsuite/rsa-keygen-test.c:1.3 Rev: nettle/testsuite/testutils.c:1.3
* Don't use WITH_PUBLIC_KEY / WITH_HOGWEED, the Makefile sorts out whichNiels Möller2007-05-141-9/+1
| | | | | | | | | | | | | files should be compiled. Rev: nettle/testsuite/dsa-keygen-test.c:1.2 Rev: nettle/testsuite/dsa-test.c:1.2 Rev: nettle/testsuite/pkcs1-test.c:1.2 Rev: nettle/testsuite/rsa-encrypt-test.c:1.2 Rev: nettle/testsuite/rsa-keygen-test.c:1.2 Rev: nettle/testsuite/rsa-test.c:1.2 Rev: nettle/testsuite/rsa2sexp-test.c:1.2 Rev: nettle/testsuite/sexp2rsa-test.c:1.2
* * testsuite/sexp-format-test.c: Include bignum.h only if HAVE_LIBGMP.Niels Möller2004-02-071-1/+4
| | | | | | | | | * testsuite/rsa-encrypt-test.c: Include rsa.h only if WITH_PUBLIC_KEY. * testsuite/pkcs1-test.c: Include pkcs1.h only if WITH_PUBLIC_KEY. Rev: src/nettle/testsuite/pkcs1-test.c:1.2 Rev: src/nettle/testsuite/rsa-encrypt-test.c:1.4 Rev: src/nettle/testsuite/sexp-format-test.c:1.8
* * testsuite/yarrow-test.c (open_file): Likewise.Niels Möller2004-02-071-2/+2
| | | | | | | | | * testsuite/rsa-encrypt-test.c (test_main): Likewise. * testsuite/bignum-test.c (test_bignum): Likewise. Rev: src/nettle/testsuite/bignum-test.c:1.4 Rev: src/nettle/testsuite/rsa-encrypt-test.c:1.3 Rev: src/nettle/testsuite/yarrow-test.c:1.14
* (test_main): Don't use gmp_printf,Niels Möller2003-09-211-1/+5
| | | | | | | as it seems it's only available with the newer gmp. Use mpz_out_str instead. Rev: src/nettle/testsuite/rsa-encrypt-test.c:1.2
* New test cases.Niels Möller2003-08-261-0/+68
Rev: src/nettle/testsuite/md2-test.c:1.1 Rev: src/nettle/testsuite/md4-test.c:1.1 Rev: src/nettle/testsuite/rsa-encrypt-test.c:1.1