X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/5d14574bbab9c46c38a8ed591099885dbc986bb5..09e500b22fc6250ba458d26a9dd7e6571d2c79d8:/fipstest.h diff --git a/fipstest.h b/fipstest.h index fa150e2..1db305c 100644 --- a/fipstest.h +++ b/fipstest.h @@ -1,13 +1,13 @@ /* -*-c-*- * - * $Id: fipstest.h,v 1.2 2000/08/11 21:34:34 mdw Exp $ + * $Id: fipstest.h,v 1.4 2004/04/08 01:36:15 mdw Exp $ * * FIPS140 randomness tests * * (c) 2000 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: fipstest.h,v $ - * Revision 1.2 2000/08/11 21:34:34 mdw - * Change to use the new thresholds given in the draft FIPS140-2. - * - * Revision 1.1 2000/06/17 10:55:38 mdw - * FIPS 140-1 random generator test. - * - */ - #ifndef CATACOMB_FIPSTEST_H #define CATACOMB_FIPSTEST_H @@ -53,13 +42,11 @@ #define FIPSTEST_BUFSZ 2500 -enum { - FIPSTEST_OK = 0, - FIPSTEST_MONOBIT = 1, - FIPSTEST_POKER = 2, - FIPSTEST_RUNS = 4, - FIPSTEST_LONGRUNS = 8 -}; +#define FIPSTEST_OK 0u +#define FIPSTEST_MONOBIT 1u +#define FIPSTEST_POKER 2u +#define FIPSTEST_RUNS 4u +#define FIPSTEST_LONGRUNS 8u /*----- Functions provided ------------------------------------------------*/