aboutsummaryrefslogtreecommitdiffstats
path: root/src/block/block_cipher.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-10-13 02:24:24 +0000
committerlloyd <[email protected]>2010-10-13 02:24:24 +0000
commit879d062c2b93e32362e338d1c6f9b1eda0f88493 (patch)
treef51c8194a4827f0aeea2244658ffb5dc6ebda1fc /src/block/block_cipher.h
parentc00da53d958ef8c266012ae9425337143f14f46e (diff)
Add accessors for block size and output length
Diffstat (limited to 'src/block/block_cipher.h')
-rw-r--r--src/block/block_cipher.h5
1 files changed, 5 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; }