projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Anderson and Biham's Tiger hash function added.
[u/mdw/catacomb]
/
mpint.h
diff --git
a/mpint.h
b/mpint.h
index
f75d5aa
..
ba6de80
100644
(file)
--- a/
mpint.h
+++ b/
mpint.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: mpint.h,v 1.
2 1999/12/10 23:22:53
mdw Exp $
+ * $Id: mpint.h,v 1.
3 2000/06/17 11:45:09
mdw Exp $
*
* Conversion between MPs and standard C integers
*
*
* Conversion between MPs and standard C integers
*
@@
-30,6
+30,11
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: mpint.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: mpint.h,v $
+ * Revision 1.3 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.2 1999/12/10 23:22:53 mdw
* Support for uint32.
*
* Revision 1.2 1999/12/10 23:22:53 mdw
* Support for uint32.
*
@@
-71,7
+76,7
@@
mp *_d = (d); \
size_t _sz = 4; \
\
mp *_d = (d); \
size_t _sz = 4; \
\
- MP_
MODIFY(_d, _sz);
\
+ MP_
DEST(_d, _sz, 0);
\
_d->f &= ~(MP_NEG | MP_UNDEF); \
\
/* --- Set the sign on the MP --- * \
_d->f &= ~(MP_NEG | MP_UNDEF); \
\
/* --- Set the sign on the MP --- * \