projects
/
u
/
mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dh_kcdsagen: Generate cofactor first.
[u/mdw/catacomb]
/
fipstest.h
diff --git
a/fipstest.h
b/fipstest.h
index
c267876
..
5bdd8dc
100644
(file)
--- a/
fipstest.h
+++ b/
fipstest.h
@@
-1,8
+1,8
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: fipstest.h,v 1.
1 2000/06/17 10:55:38
mdw Exp $
+ * $Id: fipstest.h,v 1.
4 2004/04/08 01:36:15
mdw Exp $
*
*
- * FIPS
140-1
randomness tests
+ * FIPS
140
randomness tests
*
* (c) 2000 Straylight/Edgeware
*/
*
* (c) 2000 Straylight/Edgeware
*/
@@
-27,14
+27,6
@@
* MA 02111-1307, USA.
*/
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: fipstest.h,v $
- * Revision 1.1 2000/06/17 10:55:38 mdw
- * FIPS 140-1 random generator test.
- *
- */
-
#ifndef CATACOMB_FIPSTEST_H
#define CATACOMB_FIPSTEST_H
#ifndef CATACOMB_FIPSTEST_H
#define CATACOMB_FIPSTEST_H
@@
-50,13
+42,11
@@
#define FIPSTEST_BUFSZ 2500
#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 ------------------------------------------------*/
/*----- Functions provided ------------------------------------------------*/
@@
-67,7
+57,7
@@
enum {
*
* Returns: Zero if OK, or a bitmask of failed tests.
*
*
* 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 FIPS
140
randomness tests on a block of data.
*/
extern unsigned fipstest(const octet */*p*/);
*/
extern unsigned fipstest(const octet */*p*/);