X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/44d4e7aac663215fc910ea39bcc84a404afcdb2c..16efd15b675c87d22a4fd9fb12d7bb26f2a36031:/fipstest.h diff --git a/fipstest.h b/fipstest.h index c267876..9596d8a 100644 --- a/fipstest.h +++ b/fipstest.h @@ -1,8 +1,8 @@ /* -*-c-*- * - * $Id: fipstest.h,v 1.1 2000/06/17 10:55:38 mdw Exp $ + * $Id: fipstest.h,v 1.3 2000/12/06 20:33:27 mdw Exp $ * - * FIPS 140-1 randomness tests + * FIPS140 randomness tests * * (c) 2000 Straylight/Edgeware */ @@ -30,6 +30,13 @@ /*----- Revision history --------------------------------------------------* * * $Log: fipstest.h,v $ + * Revision 1.3 2000/12/06 20:33:27 mdw + * Make flags be macros rather than enumerations, to ensure that they're + * unsigned. + * + * 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. * @@ -50,13 +57,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 ------------------------------------------------*/ @@ -67,7 +72,7 @@ enum { * * Returns: Zero if OK, or a bitmask of failed tests. * - * Use: Performs the FIPS 140-1 randomness tests on a block of data. + * Use: Performs the FIPS140 randomness tests on a block of data. */ extern unsigned fipstest(const octet */*p*/);