~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
symm/modes-test.c: Test discarding output by changing encryption order.
[catacomb]
/
symm
/
modes-test.h
diff --git
a/symm/modes-test.h
b/symm/modes-test.h
index
a53341c
..
83d35dc
100644
(file)
--- a/
symm/modes-test.h
+++ b/
symm/modes-test.h
@@
-105,7
+105,8
@@
typedef void encfn(const octet */*s*/, octet */*d*/, size_t /*sz*/);
*
* * @enc@ is called to encrypt a source buffer @s@ and write
* the ciphertext to a destination @d@; @sz@ is the common
*
* * @enc@ is called to encrypt a source buffer @s@ and write
* the ciphertext to a destination @d@; @sz@ is the common
- * size of these buffers.
+ * size of these buffers. @d@ might be null, to discard
+ * output; @s@ might be null, to process all-zero input.
*
* * @dec@ is called to decrypt a source buffer @s@ and write
* the recovered plaintext to a destination @d@; @sz@ is the
*
* * @dec@ is called to decrypt a source buffer @s@ and write
* the recovered plaintext to a destination @d@; @sz@ is the