vendor/libmcrypt/libmcrypt-2.5.8/modules/algorithms/panama.c
static void pan_reset(PAN_BUFFER * buffer, PAN_STATE * state)
{
	int i, j;

	buffer->tap_0 = 0;

	for (j = 0; j < PAN_STAGES; j++) {
		for (i = 0; i < PAN_STAGE_SIZE; i++) {
			buffer->stage[j].word[i] = 0L;
		}
	}

	for (i = 0; i < PAN_STATE_SIZE; i++) {
		state->word[i] = 0L;
	}
}
/**************************************************************************+
*
*  pan_reset() - Initializes an LFSR buffer and Panama state machine to 
*                all zeros, ready for a new hash to be accumulated or to 
*                re-synchronize or start up an encryption key-stream.
*
+**************************************************************************/
Initializes an LFSR buffer and Panama state machine to
all zeros, ready for a new hash to be accumulated or to
re-synchronize or start up an encryption key-stream.


Initializes an LFSR buffer and Panama state machine to all zeros ready for a new hash to be accumulated or to re - synchronize or start up an encryption key - stream .
static void pan_reset(PAN_BUFFER * buffer, PAN_STATE * state)
{
	int i, j;
	buffer->tap_0 = 0;
	for (j = 0; j < PAN_STAGES; j++) {
		for (i = 0; i < PAN_STAGE_SIZE; i++) {
			buffer->stage[j].word[i] = 0L;
		}
	}
	for (i = 0; i < PAN_STATE_SIZE; i++) {
		state->word[i] = 0L;
	}
}
static void pan_reset ( PAN_BUFFER * buffer , PAN_STATE * state ) { int i , j ; buffer -> tap_0 = 0 ; for ( j = 0 ; j < PAN_STAGES ; j ++ ) { for ( i = 0 ; i < PAN_STAGE_SIZE ; i ++ ) { buffer -> stage [ j ] . word [ i ] = 0L ; } } for ( i = 0 ; i < PAN_STATE_SIZE ; i ++ ) { state -> word [ i ] = 0L ; } }
+
pan_reset() - Initializes an LFSR buffer and Panama state machine to
all zeros, ready for a new hash to be accumulated or to
re-synchronize or start up an encryption key-stream.
+ pan_reset () - Initializes an LFSR buffer and Panama state machine to all zeros ready for a new hash to be accumulated or to re - synchronize or start up an encryption key - stream .