]> git.rm.cloudns.org Git - xonotic/d0_blind_id.git/commitdiff
improve temp use v0.5
authorRudolf Polzer <divverent@xonotic.org>
Fri, 9 Dec 2011 11:44:14 +0000 (12:44 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 9 Dec 2011 11:44:14 +0000 (12:44 +0100)
d0_blind_id.c

index 57ca8fd0594242d11c3f8507571321f16edb3e02..f1cd22e4e14172707b6c6e07826d1d4a9b2ec581 100644 (file)
@@ -1442,13 +1442,12 @@ fail:
 
 D0_WARN_UNUSED_RESULT D0_BOOL d0_blind_id_verify_private_id(const d0_blind_id_t *ctx)
 {
-       USINGTEMPS(); // temps: temp0 = order, temp1 = g^s
+       USINGTEMPS(); // temps: temp0 = g^s
        USING(schnorr_G); USING(schnorr_s); USING(schnorr_g_to_s);
 
        LOCKTEMPS();
-       CHECK(d0_dl_get_order(temp0, ctx->schnorr_G));
-       CHECK(d0_bignum_mod_pow(temp1, four, ctx->schnorr_s, ctx->schnorr_G));
-       CHECK(!d0_bignum_cmp(temp1, ctx->schnorr_g_to_s));
+       CHECK(d0_bignum_mod_pow(temp0, four, ctx->schnorr_s, ctx->schnorr_G));
+       CHECK(!d0_bignum_cmp(temp0, ctx->schnorr_g_to_s));
        UNLOCKTEMPS();
        return 1;