X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/9312c71ff376dd96fdf970002fd3adb5aeec8db3..22bab86c9df047bdd258283c6567821319ba7a6f:/share.c diff --git a/share.c b/share.c index 0d61a78..4f5942e 100644 --- a/share.c +++ b/share.c @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: share.c,v 1.3 2000/06/24 18:29:05 mdw Exp $ + * $Id: share.c,v 1.4 2000/10/08 12:16:17 mdw Exp $ * * Shamir's secret sharing * @@ -30,6 +30,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: share.c,v $ + * Revision 1.4 2000/10/08 12:16:17 mdw + * Use @MP_EQ@ instead of @MP_CMP@. + * * Revision 1.3 2000/06/24 18:29:05 mdw * Interface change: allow shares to be extracted from a context on demand, * rather than building them all up-front. @@ -342,7 +345,7 @@ static int verify(grand *r) ss = share_combine(&s); share_destroy(&s); - if (MP_CMP(sec, !=, ss)) { + if (!MP_EQ(sec, ss)) { ok = 0; fprintf(stderr, "\nbad recombination of shares\n"); };