Update comments to make it clear the keystream is written
parent
375b38554e
commit
6f64671e4a
|
|
@ -228,8 +228,8 @@ void HC128Policy::OperateKeystream(KeystreamOperation operation, byte *output, c
|
||||||
// then it will ask OperateKeystream to generate one. Optionally it
|
// then it will ask OperateKeystream to generate one. Optionally it
|
||||||
// will ask for an XOR of the input with the keystream while
|
// will ask for an XOR of the input with the keystream while
|
||||||
// writing the result to the output buffer. In all cases the
|
// writing the result to the output buffer. In all cases the
|
||||||
// output buffer is written. The optional part is adding the
|
// keystream is written to the output buffer. The optional part is
|
||||||
// input buffer and keystream.
|
// adding the input buffer and keystream.
|
||||||
if ((operation & INPUT_NULL) != INPUT_NULL)
|
if ((operation & INPUT_NULL) != INPUT_NULL)
|
||||||
xorbuf(output, input, 64);
|
xorbuf(output, input, 64);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -103,8 +103,8 @@ void HC256Policy::OperateKeystream(KeystreamOperation operation, byte *output, c
|
||||||
// then it will ask OperateKeystream to generate one. Optionally it
|
// then it will ask OperateKeystream to generate one. Optionally it
|
||||||
// will ask for an XOR of the input with the keystream while
|
// will ask for an XOR of the input with the keystream while
|
||||||
// writing the result to the output buffer. In all cases the
|
// writing the result to the output buffer. In all cases the
|
||||||
// output buffer is written. The optional part is adding the
|
// keystream is written to the output buffer. The optional part is
|
||||||
// input buffer and keystream.
|
// adding the input buffer and keystream.
|
||||||
if ((operation & INPUT_NULL) != INPUT_NULL)
|
if ((operation & INPUT_NULL) != INPUT_NULL)
|
||||||
xorbuf(output, input, msglen);
|
xorbuf(output, input, msglen);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -148,8 +148,8 @@ void RabbitPolicy::OperateKeystream(KeystreamOperation operation, byte *output,
|
||||||
// then it will ask OperateKeystream to generate one. Optionally it
|
// then it will ask OperateKeystream to generate one. Optionally it
|
||||||
// will ask for an XOR of the input with the keystream while
|
// will ask for an XOR of the input with the keystream while
|
||||||
// writing the result to the output buffer. In all cases the
|
// writing the result to the output buffer. In all cases the
|
||||||
// output buffer is written. The optional part is adding the
|
// keystream is written to the output buffer. The optional part is
|
||||||
// input buffer and keystream.
|
// adding the input buffer and keystream.
|
||||||
if ((operation & INPUT_NULL) != INPUT_NULL)
|
if ((operation & INPUT_NULL) != INPUT_NULL)
|
||||||
xorbuf(output, input, GetBytesPerIteration() * iterationCount);
|
xorbuf(output, input, GetBytesPerIteration() * iterationCount);
|
||||||
}
|
}
|
||||||
|
|
@ -250,8 +250,8 @@ void RabbitWithIVPolicy::OperateKeystream(KeystreamOperation operation, byte *ou
|
||||||
// then it will ask OperateKeystream to generate one. Optionally it
|
// then it will ask OperateKeystream to generate one. Optionally it
|
||||||
// will ask for an XOR of the input with the keystream while
|
// will ask for an XOR of the input with the keystream while
|
||||||
// writing the result to the output buffer. In all cases the
|
// writing the result to the output buffer. In all cases the
|
||||||
// output buffer is written. The optional part is adding the
|
// keystream is written to the output buffer. The optional part is
|
||||||
// input buffer and keystream.
|
// adding the input buffer and keystream.
|
||||||
if ((operation & INPUT_NULL) != INPUT_NULL)
|
if ((operation & INPUT_NULL) != INPUT_NULL)
|
||||||
xorbuf(output, input, GetBytesPerIteration() * iterationCount);
|
xorbuf(output, input, GetBytesPerIteration() * iterationCount);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue