From b119131873822fa50fbe94d1a09132fa31d3bc3a Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Thu, 22 Jan 2015 16:22:32 +0100 Subject: Remove TALER_RSA_hash_sign() and TALER_RSA_hash_verify(). --- src/util/test_rsa.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/util/test_rsa.c') diff --git a/src/util/test_rsa.c b/src/util/test_rsa.c index 85114843..1f7adfd6 100644 --- a/src/util/test_rsa.c +++ b/src/util/test_rsa.c @@ -69,11 +69,7 @@ main (int argc, char *argv[]) ntohs (priv_enc->len)))); GNUNET_free (priv_enc); priv_enc = NULL; - EXITIF (GNUNET_OK != TALER_RSA_hash_verify (&hash, - &sig, - &pubkey)); - EXITIF (GNUNET_OK != TALER_RSA_verify (rnd_blk, - RND_BLK_SIZE, + EXITIF (GNUNET_OK != TALER_RSA_verify (&hash, sizeof (hash), &sig, &pubkey)); @@ -93,9 +89,9 @@ main (int argc, char *argv[]) EXITIF (GNUNET_OK != TALER_RSA_unblind (&sig, bkey, &pubkey)); - EXITIF (GNUNET_OK != TALER_RSA_hash_verify (&hash, - &sig, - &pubkey)); + EXITIF (GNUNET_OK != TALER_RSA_verify (&hash, sizeof (hash), + &sig, + &pubkey)); ret = 0; /* all OK */ EXITIF_exit: -- cgit v1.2.3