aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/block/block_cipher.h5
-rw-r--r--src/utils/buf_comp/buf_comp.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/block/block_cipher.h b/src/block/block_cipher.h
index 8f9a4e121..a7ca4cd99 100644
--- a/src/block/block_cipher.h
+++ b/src/block/block_cipher.h
@@ -40,6 +40,11 @@ class BOTAN_DLL BlockCipher : public SymmetricAlgorithm
const u32bit BLOCK_SIZE;
/**
+ * @return block size of this algorithm
+ */
+ size_t block_size() const { return BLOCK_SIZE; }
+
+ /**
* @return native parallelism of this cipher in blocks
*/
virtual size_t parallelism() const { return 1; }
diff --git a/src/utils/buf_comp/buf_comp.h b/src/utils/buf_comp/buf_comp.h
index 0904941d6..c1c2583c3 100644
--- a/src/utils/buf_comp/buf_comp.h
+++ b/src/utils/buf_comp/buf_comp.h
@@ -28,6 +28,11 @@ class BOTAN_DLL BufferedComputation
const size_t OUTPUT_LENGTH;
/**
+ * @return length of the output of this function in bytes
+ */
+ size_t output_length() const { return OUTPUT_LENGTH; }
+
+ /**
* Add new input to process.
* @param in the input to process as a byte array
* @param length of param in in bytes