Oberon || Library || Module Index || Search Engine || Definition || Module


Ulm's Oberon Library:
CipherOps


NAME

CipherOps - functions for "XOR"ing streams

SYNOPSIS

PROCEDURE XorByte (b1, b2: BYTE) : BYTE;
PROCEDURE XorStream (in1, in2, out: Streams.Stream; length: INTEGER);

DESCRIPTION

XorByte combines two bytes b1 and b2 with a bitwise XOR.

XorStream does the same with two streams in1 and in2 for the next length bytes and put the result onto stream out. These functions are imported by the module StreamCiphers but could be useful for other purposes besides encryption.

AUTHOR

Michael Szczuka, University of Ulm
Edited by: borchert, last change: 1995/11/14, revision: 1.1, converted to HTML: 1997/04/28

Oberon || Library || Module Index || Search Engine || Definition || Module