summaryrefslogtreecommitdiffstats
path: root/src/lib/crypto/cipher.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/crypto/cipher.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/crypto/cipher.hpp b/src/lib/crypto/cipher.hpp
index c9edf15..f683b76 100644
--- a/src/lib/crypto/cipher.hpp
+++ b/src/lib/crypto/cipher.hpp
@@ -58,7 +58,10 @@ class Cipher {
const uint8_t *input,
size_t input_length,
size_t * input_consumed) = 0;
- // process final block and perform any padding
+ /**
+ * @brief Finalize cipher. For AEAD mode, depending on backend, may require whole
+ * authentication tag to be present in input.
+ */
virtual bool finish(uint8_t * output,
size_t output_length,
size_t * output_written,