aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/modes/cbc/cbc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/modes/cbc/cbc.h')
-rw-r--r--src/lib/modes/cbc/cbc.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/modes/cbc/cbc.h b/src/lib/modes/cbc/cbc.h
index caad102d4..c6b6e4e4b 100644
--- a/src/lib/modes/cbc/cbc.h
+++ b/src/lib/modes/cbc/cbc.h
@@ -62,6 +62,10 @@ class BOTAN_DLL CBC_Mode : public Cipher_Mode
class BOTAN_DLL CBC_Encryption : public CBC_Mode
{
public:
+ /**
+ * @param cipher block cipher to use
+ * @param padding padding method to use
+ */
CBC_Encryption(BlockCipher* cipher, BlockCipherModePaddingMethod* padding) :
CBC_Mode(cipher, padding) {}
@@ -80,6 +84,9 @@ class BOTAN_DLL CBC_Encryption : public CBC_Mode
class BOTAN_DLL CTS_Encryption final : public CBC_Encryption
{
public:
+ /**
+ * @param cipher block cipher to use
+ */
explicit CTS_Encryption(BlockCipher* cipher) : CBC_Encryption(cipher, nullptr) {}
size_t output_length(size_t input_length) const override;
@@ -97,6 +104,10 @@ class BOTAN_DLL CTS_Encryption final : public CBC_Encryption
class BOTAN_DLL CBC_Decryption : public CBC_Mode
{
public:
+ /**
+ * @param cipher block cipher to use
+ * @param padding padding method to use
+ */
CBC_Decryption(BlockCipher* cipher, BlockCipherModePaddingMethod* padding) :
CBC_Mode(cipher, padding), m_tempbuf(update_granularity()) {}
@@ -117,6 +128,9 @@ class BOTAN_DLL CBC_Decryption : public CBC_Mode
class BOTAN_DLL CTS_Decryption final : public CBC_Decryption
{
public:
+ /**
+ * @param cipher block cipher to use
+ */
explicit CTS_Decryption(BlockCipher* cipher) : CBC_Decryption(cipher, nullptr) {}
void finish(secure_vector<byte>& final_block, size_t offset = 0) override;