summaryrefslogtreecommitdiff
path: root/hc256.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-07-29 12:18:22 -0400
committerJeffrey Walton <noloader@gmail.com>2018-07-29 12:18:22 -0400
commit6f64671e4ae3092206ed8b853e6336f8db75fbcc (patch)
tree69a7693e2d3c6bf366986b4cfcb7249f04e6406f /hc256.cpp
parent375b38554e7d8b8a2da8571eede97f3e52b57906 (diff)
downloadcryptopp-git-6f64671e4ae3092206ed8b853e6336f8db75fbcc.tar.gz
Update comments to make it clear the keystream is written
Diffstat (limited to 'hc256.cpp')
-rw-r--r--hc256.cpp4
1 files changed, 2 insertions, 2 deletions
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);
}