diff options
| author | Miloslav Trmač <mitr@redhat.com> | 2010-10-27 00:01:09 +0200 |
|---|---|---|
| committer | Miloslav Trmač <mitr@redhat.com> | 2010-10-27 00:01:09 +0200 |
| commit | e6dcc0e913b63775429c6c0fcf4ac97ec86d9e52 (patch) | |
| tree | 013c07fd68f85a6fca6c5d93b6db02b8b84ef452 /tests | |
| parent | 0808df9380f27106d1c0fe883b8e4aac5eb190fc (diff) | |
| download | ncrypto-e6dcc0e913b63775429c6c0fcf4ac97ec86d9e52.tar.gz ncrypto-e6dcc0e913b63775429c6c0fcf4ac97ec86d9e52.tar.xz ncrypto-e6dcc0e913b63775429c6c0fcf4ac97ec86d9e52.zip | |
Verify RSA signature verification can fail
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/rsa.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/rsa.c b/tests/rsa.c index 9addcf4..224f5c1 100644 --- a/tests/rsa.c +++ b/tests/rsa.c @@ -88,6 +88,10 @@ main (void) res = ncr_public_key_verify (CKM_RSA_PKCS, public, dest, dest_size, input, sizeof (input)); assert (res == CKR_OK); + dest[0]++; + res = ncr_public_key_verify (CKM_RSA_PKCS, public, dest, dest_size, input, + sizeof (input)); + assert (res != CKR_OK); res = ncr_private_key_destroy (private); assert (res == CKR_OK); |
