projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handy new comparison macros.
[u/mdw/catacomb]
/
dsarand.h
diff --git
a/dsarand.h
b/dsarand.h
index
131d31b
..
4d36d6d
100644
(file)
--- a/
dsarand.h
+++ b/
dsarand.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: dsarand.h,v 1.
2 2000/06/17 10:54:14
mdw Exp $
+ * $Id: dsarand.h,v 1.
3 2001/02/03 16:08:56
mdw Exp $
*
* Random number generator for DSA
*
*
* Random number generator for DSA
*
@@
-30,6
+30,10
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: dsarand.h,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: dsarand.h,v $
+ * Revision 1.3 2001/02/03 16:08:56 mdw
+ * Give generic random objects separate namespaces for their supported misc
+ * ops. Add operations for reading the current seed value.
+ *
* Revision 1.2 2000/06/17 10:54:14 mdw
* Typesetting fixes.
*
* Revision 1.2 2000/06/17 10:54:14 mdw
* Typesetting fixes.
*
@@
-138,7
+142,9
@@
extern void dsarand_fill(dsarand */*d*/, void */*p*/, size_t /*sz*/);
/* --- Miscellaneous operations --- */
enum {
/* --- Miscellaneous operations --- */
enum {
- DSARAND_PASSES = GRAND_SPECIFIC
+ DSARAND_PASSES = GRAND_SPECIFIC('D'), /* @unsigned n@ */
+ DSARAND_SEEDSZ, /* No args */
+ DSARAND_GETSEED /* @void *buf@ */
};
/* --- @dsarand_create@ --- *
};
/* --- @dsarand_create@ --- *
@@
-148,8
+154,7
@@
enum {
*
* Returns: Pointer to a generic generator.
*
*
* Returns: Pointer to a generic generator.
*
- * Use: Constructs a generic generator interface over a Catacomb
- * entropy pool generator.
+ * Use: Constructs a generic generator interface to a DSA generator.
*/
extern grand *dsarand_create(const void */*p*/, size_t /*sz*/);
*/
extern grand *dsarand_create(const void */*p*/, size_t /*sz*/);