aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/block_cipher.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/block/block_cipher.h')
-rw-r--r--src/block/block_cipher.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/block/block_cipher.h b/src/block/block_cipher.h
index e97eebf0f..06e8c5cea 100644
--- a/src/block/block_cipher.h
+++ b/src/block/block_cipher.h
@@ -59,8 +59,21 @@ class BOTAN_DLL BlockCipher : public SymmetricAlgorithm
*/
void decrypt(byte block[]) const { decrypt_n(block, block, 1); }
+ /**
+ * Encrypt one or more blocks
+ * @param in the input buffer (multiple of BLOCK_SIZE)
+ * @param out the output buffer (same size as in)
+ * @param blocks the number of blocks to process
+ */
virtual void encrypt_n(const byte in[], byte out[],
u32bit blocks) const = 0;
+
+ /**
+ * Decrypt one or more blocks
+ * @param in the input buffer (multiple of BLOCK_SIZE)
+ * @param out the output buffer (same size as in)
+ * @param blocks the number of blocks to process
+ */
virtual void decrypt_n(const byte in[], byte out[],
u32bit blocks) const = 0;