diff options
Diffstat (limited to 'src/util/test_rsa.c')
-rw-r--r-- | src/util/test_rsa.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/util/test_rsa.c b/src/util/test_rsa.c index 85114843d..1f7adfd6c 100644 --- a/src/util/test_rsa.c +++ b/src/util/test_rsa.c | |||
@@ -69,11 +69,7 @@ main (int argc, char *argv[]) | |||
69 | ntohs (priv_enc->len)))); | 69 | ntohs (priv_enc->len)))); |
70 | GNUNET_free (priv_enc); | 70 | GNUNET_free (priv_enc); |
71 | priv_enc = NULL; | 71 | priv_enc = NULL; |
72 | EXITIF (GNUNET_OK != TALER_RSA_hash_verify (&hash, | 72 | EXITIF (GNUNET_OK != TALER_RSA_verify (&hash, sizeof (hash), |
73 | &sig, | ||
74 | &pubkey)); | ||
75 | EXITIF (GNUNET_OK != TALER_RSA_verify (rnd_blk, | ||
76 | RND_BLK_SIZE, | ||
77 | &sig, | 73 | &sig, |
78 | &pubkey)); | 74 | &pubkey)); |
79 | 75 | ||
@@ -93,9 +89,9 @@ main (int argc, char *argv[]) | |||
93 | EXITIF (GNUNET_OK != TALER_RSA_unblind (&sig, | 89 | EXITIF (GNUNET_OK != TALER_RSA_unblind (&sig, |
94 | bkey, | 90 | bkey, |
95 | &pubkey)); | 91 | &pubkey)); |
96 | EXITIF (GNUNET_OK != TALER_RSA_hash_verify (&hash, | 92 | EXITIF (GNUNET_OK != TALER_RSA_verify (&hash, sizeof (hash), |
97 | &sig, | 93 | &sig, |
98 | &pubkey)); | 94 | &pubkey)); |
99 | ret = 0; /* all OK */ | 95 | ret = 0; /* all OK */ |
100 | 96 | ||
101 | EXITIF_exit: | 97 | EXITIF_exit: |