Update comments to make it clear the keystream is written

pull/696/head
Jeffrey Walton 2018-07-29 12:18:22 -04:00
parent 375b38554e
commit 6f64671e4a
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
3 changed files with 8 additions and 8 deletions

View File

@ -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);

View File

@ -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);
} }

View File

@ -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);
} }