#ifndef _ALG_UTIL_H_3cc2cc3b_ #define _ALG_UTIL_H_3cc2cc3b_ /* This file is in the public domain. */ /* * Utilities for use by algorithm code. */ /* * xor_block XORs two blocks of bytes together, putting the result in a * third. The arguments are the input blocks, the output block, and * the byte count. The output block may equal one (or both!) of the * input blocks, but if it overlaps an input block but is not equal to * it, the resulting data block is undefined. Provided this undefined * condition does not occur, the input blocks may overlap arbitrarily. */ extern void xor_block(const void *, const void *, void *, int); #endif