X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/e8c3c91f8fb415f754fe861ef69a3da1c8403e71..7d5a856ef5b3f27ffa8a5c0765f6677313e90ab4:/dsarand.h diff --git a/dsarand.h b/dsarand.h index 131d31b..bc5e700 100644 --- a/dsarand.h +++ b/dsarand.h @@ -1,13 +1,13 @@ /* -*-c-*- * - * $Id: dsarand.h,v 1.2 2000/06/17 10:54:14 mdw Exp $ + * $Id: dsarand.h,v 1.4 2004/04/08 01:36:15 mdw Exp $ * * Random number generator for DSA * * (c) 1999 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of Catacomb. * @@ -15,29 +15,18 @@ * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. - * + * * Catacomb is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. - * + * * You should have received a copy of the GNU Library General Public * License along with Catacomb; if not, write to the Free * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: dsarand.h,v $ - * Revision 1.2 2000/06/17 10:54:14 mdw - * Typesetting fixes. - * - * Revision 1.1 1999/12/22 15:53:12 mdw - * Random number generator for finding DSA parameters. - * - */ - #ifndef CATACOMB_DSARAND_H #define CATACOMB_DSARAND_H @@ -138,7 +127,9 @@ extern void dsarand_fill(dsarand */*d*/, void */*p*/, size_t /*sz*/); /* --- Miscellaneous operations --- */ enum { - DSARAND_PASSES = GRAND_SPECIFIC + DSARAND_PASSES = GRAND_SPECIFIC('D'), /* @unsigned n@ */ + DSARAND_SEEDSZ, /* No args */ + DSARAND_GETSEED /* @void *buf@ */ }; /* --- @dsarand_create@ --- * @@ -148,8 +139,7 @@ enum { * * 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*/);