Content-type: text/html
Manpage of IPSEC_PARITYOFBUFFER
IPSEC_PARITYOFBUFFER
Section: C Library Functions (3)
Updated: 07 Dec 2003
Index
Return to Main Contents
NAME
ipsec parityofbuffer - return difference of counts of 0-bits and 1-bits in a buffer
SYNOPSIS
#include <freeswan.h>
int parityofbuffer(const unsigned char *buf, size_t len)
DESCRIPTION
parityofbuffer
counts the number of 0-bits and the number 1-bits in the bytes of the buffer.
The difference between the two counts is then computed, ones minus zeros.
The result is returned.
This function may be of utility in discovering non-randomess in supposedly
random sources.
DIAGNOSTICS
HISTORY
Written for the FreeS/WAN project by Michael Richardson.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- DIAGNOSTICS
-
- HISTORY
-
This document was created by
man2html,
using the manual pages.
Time: 19:04:25 GMT, April 17, 2004