From a3f7056262d1501daab8e9b5f4af81f642409fc3 Mon Sep 17 00:00:00 2001 From: Michael Hamburg Date: Wed, 25 Feb 2015 17:43:34 -0800 Subject: [PATCH] Remove impossible todo; sigs still don't work --- src/decaf_crypto.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/decaf_crypto.c b/src/decaf_crypto.c index da1874c..1cebb6d 100644 --- a/src/decaf_crypto.c +++ b/src/decaf_crypto.c @@ -184,7 +184,7 @@ decaf_448_verify_shake ( shake256_destroy(ctx); decaf_448_scalar_decode_long(challenge, overkill, sizeof(overkill)); - /* Decode points. PERF: avoid decode of point? */ + /* Decode points. */ ret = decaf_448_point_decode(point, sig, DECAF_TRUE); ret &= decaf_448_point_decode(pubpoint, pub, DECAF_FALSE); ret &= decaf_448_scalar_decode(response, &sig[DECAF_448_SER_BYTES]); @@ -194,8 +194,7 @@ decaf_448_verify_shake ( decaf_448_point_identity, response, pubpoint, challenge ); - - /* TODO: avoid the decode here? */ + ret &= decaf_448_point_eq(pubpoint, point); return ret;