NAME

Trfcrypt_ShiftRegister - Shift the register.

SYNOPSIS

#include <generic/trfcrypt.h>

extern void Trfcrypt_ShiftRegister
(
	void *buffer,
	void *in,
	int shift,
	int buffer_length
);

PARAMETERS

void *buffer
Data shifted to the left.
void *in
2nd register shifted into the buffer.
int shift
Number of bytes to shift out (and in).
int buffer_length
Length of buffer and in (in byte).

DESCRIPTION

The register is shifted 'shift' bytes to the left. The same number of bytes from the left of the 2nd register ('in') is inserted at the right of 'buffer' to replace the lost bytes.

SEE ALSO

Trfcrypt_Init , Trfcrypt_SafeInit , Trfcrypt_CSchedule , Trfcrypt_CEncryptChar , Trfcrypt_CDecryptChar , Trfcrypt_CCheck , Trfcrypt_RegisterCipher , Trfcrypt_BCSchedule , Trfcrypt_BCEncryptBlock , Trfcrypt_BCDecryptBlock , Trfcrypt_BCCheck , Trfcrypt_RegisterBlockcipher , Trfcrypt_XorBuffer , Trfcrypt_FlipRegisterShort , Trfcrypt_FlipRegisterLong