projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Makefile to test mp-sqrt.c.
[u/mdw/catacomb]
/
mpmont-mexp.c
diff --git
a/mpmont-mexp.c
b/mpmont-mexp.c
index
b541f8c
..
0e5da91
100644
(file)
--- a/
mpmont-mexp.c
+++ b/
mpmont-mexp.c
@@
-1,8
+1,8
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: mpmont-mexp.c,v 1.
3 1999/12/10 23:18:3
9 mdw Exp $
+ * $Id: mpmont-mexp.c,v 1.
4 2000/06/17 11:45:0
9 mdw Exp $
*
*
- * Multipl
l
e simultaneous exponentiations
+ * Multiple simultaneous exponentiations
*
* (c) 1999 Straylight/Edgeware
*/
*
* (c) 1999 Straylight/Edgeware
*/
@@
-30,6
+30,11
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: mpmont-mexp.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: mpmont-mexp.c,v $
+ * Revision 1.4 2000/06/17 11:45:09 mdw
+ * Major memory management overhaul. Added arena support. Use the secure
+ * arena for secret integers. Replace and improve the MP management macros
+ * (e.g., replace MP_MODIFY by MP_DEST).
+ *
* Revision 1.3 1999/12/10 23:18:39 mdw
* Change interface for suggested destinations.
*
* Revision 1.3 1999/12/10 23:18:39 mdw
* Change interface for suggested destinations.
*
@@
-121,6
+126,9
@@
mp *mpmont_mexpr(mpmont *mm, mp *d, mpmont_factor *f, size_t n)
*
* I must scan the exponents from left to right, which is a shame. It
* means that I can't use the standard @mpscan@ stuff, in particular.
*
* I must scan the exponents from left to right, which is a shame. It
* means that I can't use the standard @mpscan@ stuff, in particular.
+ *
+ * If any of the exponents are considered secret then make the accumulator
+ * automatically set the secret bit.
*/
{
*/
{
@@
-132,6
+140,8
@@
mp *mpmont_mexpr(mpmont *mm, mp *d, mpmont_factor *f, size_t n)
s[i].len = MP_LEN(f[i].exp);
if (s[i].len > o)
o = s[i].len;
s[i].len = MP_LEN(f[i].exp);
if (s[i].len > o)
o = s[i].len;
+ if (f[i].exp->f & MP_BURN)
+ spare = MP_NEWSEC;
}
b = 0;
}
}
b = 0;
}