diff options
author | lloyd <[email protected]> | 2010-10-28 20:09:51 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-28 20:09:51 +0000 |
commit | cfe97e52b7bd72baca6f9befcde40a0ce5c7e0f2 (patch) | |
tree | 769477100d2927e296b60c8d4a99aa1932f0d031 | |
parent | c034b01bfed74c85ce97b8f517d1f86e3717c201 (diff) |
Add BlockCipher::block_size for source compatability with 1.9
-rw-r--r-- | src/block/block_cipher.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/block/block_cipher.h b/src/block/block_cipher.h index 01c45af04..8db959f60 100644 --- a/src/block/block_cipher.h +++ b/src/block/block_cipher.h @@ -39,6 +39,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; } + + /** * Encrypt a block. * @param in The plaintext block to be encrypted as a byte array. * Must be of length BLOCK_SIZE. |