From 30b304b0f1f6863926a249fc9824e7dfa41f4dd9 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 6 Jul 2018 00:35:01 -0400 Subject: Update comments --- hc256.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'hc256.cpp') diff --git a/hc256.cpp b/hc256.cpp index 1cdc0cb2..d7c47fd8 100644 --- a/hc256.cpp +++ b/hc256.cpp @@ -100,8 +100,11 @@ void HC256Policy::OperateKeystream(KeystreamOperation operation, byte *output, c PutWord(false, LITTLE_ENDIAN_ORDER, out, Generate()); // If AdditiveCipherTemplate does not have an accumulated keystream - // then it will ask OperateKeystream to XOR the plaintext with - // the keystream and write it to the ciphertext buffer. + // 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. if ((operation & INPUT_NULL) != INPUT_NULL) xorbuf(output, input, msglen); } -- cgit v1.2.1