summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hc128.cpp4
-rw-r--r--hc256.cpp4
-rw-r--r--rabbit.cpp8
3 files changed, 8 insertions, 8 deletions
diff --git a/hc128.cpp b/hc128.cpp
index 3d5be1cc..682344c5 100644
--- a/hc128.cpp
+++ b/hc128.cpp
@@ -228,8 +228,8 @@ void HC128Policy::OperateKeystream(KeystreamOperation operation, byte *output, c
// then it will ask OperateKeystream to generate one. Optionally it
// will ask for an XOR of the input with the keystream while
// writing the result to the output buffer. In all cases the
- // output buffer is written. The optional part is adding the
- // input buffer and keystream.
+ // keystream is written to the output buffer. The optional part is
+ // adding the input buffer and keystream.
if ((operation & INPUT_NULL) != INPUT_NULL)
xorbuf(output, input, 64);
diff --git a/hc256.cpp b/hc256.cpp
index d7c47fd8..aa64c648 100644
--- a/hc256.cpp
+++ b/hc256.cpp
@@ -103,8 +103,8 @@ void HC256Policy::OperateKeystream(KeystreamOperation operation, byte *output, c
// then it will ask OperateKeystream to generate one. Optionally it
// will ask for an XOR of the input with the keystream while
// writing the result to the output buffer. In all cases the
- // output buffer is written. The optional part is adding the
- // input buffer and keystream.
+ // keystream is written to the output buffer. The optional part is
+ // adding the input buffer and keystream.
if ((operation & INPUT_NULL) != INPUT_NULL)
xorbuf(output, input, msglen);
}
diff --git a/rabbit.cpp b/rabbit.cpp
index 8bc4a499..ef146259 100644
--- a/rabbit.cpp
+++ b/rabbit.cpp
@@ -148,8 +148,8 @@ void RabbitPolicy::OperateKeystream(KeystreamOperation operation, byte *output,
// then it will ask OperateKeystream to generate one. Optionally it
// will ask for an XOR of the input with the keystream while
// writing the result to the output buffer. In all cases the
- // output buffer is written. The optional part is adding the
- // input buffer and keystream.
+ // keystream is written to the output buffer. The optional part is
+ // adding the input buffer and keystream.
if ((operation & INPUT_NULL) != INPUT_NULL)
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
// will ask for an XOR of the input with the keystream while
// writing the result to the output buffer. In all cases the
- // output buffer is written. The optional part is adding the
- // input buffer and keystream.
+ // keystream is written to the output buffer. The optional part is
+ // adding the input buffer and keystream.
if ((operation & INPUT_NULL) != INPUT_NULL)
xorbuf(output, input, GetBytesPerIteration() * iterationCount);
}