//=================================================================================================================================
//
// NOTE: COLUMNS 132 TABSTOP 4 - GET A REAL TERMINAL!!!
//
// ***************************************************************************
// ***************************************************************************
// ***************************************************************************
// ***                                                                     ***
// *** LEGAL DISCLAIMER AND RIGHTS POSTING:                                ***
// ***                                                                     ***
// *** Heavily modified against original sources by Jack Bates solely at   ***
// *** the expense of Jack Bates on Saturday, February 7, 2004.            ***
// ***                                                                     ***
// *** This code has been de-optimized in favor of maintaining all state   ***
// *** via a pointer to a FIPS140_CTX structure (which makes it thread     ***
// *** safe).                                                              ***
// ***                                                                     ***
// *** In addition to the copyright notice below, my modifications are     ***
// *** Copyright 2004 by Jack Bates TaborRampart at FloatingDogHead .net   ***
// *** and are redistibutable under the same conditions given below.       ***
// ***                                                                     ***
// *** THIS IS A FREE TOOL OF HACK BY JACK.                                ***
// ***                                                                     ***
// *** I ACCEPT NO LIABILITY WHATSOEVER IN REGARDS TO YOUR USE OF THIS     ***
// *** SOURCE CODE.  MY RELEASE OF THIS FILE IS A FREE PUBLIC SERVICE.  I  ***
// *** DIDN'T WRITE THIS TO GET SUED, IT IS INTENDED FOR EDUCATIONAL USE   ***
// *** IN THE STUDY OF THE COMPUTING SCIENCES AND HOW THE INTERNET WORKS.  ***
// ***                                                                     ***
// ***************************************************************************
// ***************************************************************************
// ***************************************************************************
//
//=================================================================================================================================

#ifndef _fips140_h_
#define _fips140_h_

/* @(#)fips140.c	1.5 (Qualcomm) 02/09/02 */
/*
This software is free for commercial and non-commercial use
subject to the following conditions.

Copyright remains vested in QUALCOMM Incorporated, and Copyright
notices in the code are not to be removed.  If this package is used in
a product, QUALCOMM should be given attribution as the author this
software.  This can be in the form of a textual message at program
startup or in documentation (online or textual) provided with the
package.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

1. Redistributions of source code must retain the copyright notice,
   this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the
   distribution.

3. All advertising materials mentioning features or use of this
   software must display the following acknowledgement:  This product
   includes software developed by QUALCOMM Incorporated.

THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

The license and distribution terms for any publically available version
or derivative of this code cannot be changed, that is, this code cannot
simply be copied and put under another distribution license including
the GNU Public License.
*/

/* Run FIPS 140 statistical tests on a file */
/* written by Greg Rose, Copyright C 2000 QUALCOMM Incorporated */

//------------------------------=-----------------------=--------------------------------------------------------------------------
//
typedef struct tagFIPS140_CTX
{
	uint8_t						au8Bits[2500];
	int32_t						ai32Poker[16];
	int32_t						aai32Runs[2][7];
	int32_t						i32Errs;
} FIPS140_CTX;

#endif

//=================================================================================================================================

