diff options
author | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-01-22 16:22:32 +0100 |
---|---|---|
committer | Sree Harsha Totakura <sreeharsha@totakura.in> | 2015-01-22 16:22:32 +0100 |
commit | b119131873822fa50fbe94d1a09132fa31d3bc3a (patch) | |
tree | 4fc859f152b6baec9978dd7a2202044b81323a23 /src/util/test_rsa.c | |
parent | ce9da7f183f5f00b99e460b171291d6a028c53f2 (diff) | |
download | exchange-b119131873822fa50fbe94d1a09132fa31d3bc3a.tar.gz exchange-b119131873822fa50fbe94d1a09132fa31d3bc3a.tar.bz2 exchange-b119131873822fa50fbe94d1a09132fa31d3bc3a.zip |
Remove TALER_RSA_hash_sign() and TALER_RSA_hash_verify().
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[]) 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: |