RT 3493: fix RSA test
authorEmilia Kasper <emilia@openssl.org>
Tue, 1 Sep 2015 11:19:15 +0000 (13:19 +0200)
committerEmilia Kasper <emilia@openssl.org>
Tue, 1 Sep 2015 18:05:56 +0000 (20:05 +0200)
commit9d4798a9e0e1d2a366adabafcf0f007f42cd5fa7
treeed2abcdd9d7e0c98550851061c08e5ff6fd88230
parent246a010b781444d8c216851d2ae34a42ade91f38
RT 3493: fix RSA test

- Pass in the right ciphertext length to ensure we're indeed testing
  ciphertext corruption (and not truncation).
- Only test one mutation per byte to not make the test too slow.
- Add a separate test for truncated ciphertexts.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit 25d6b3401ca40c9a2cbe5080449c1c2a37037777)
crypto/rsa/rsa_test.c