aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/def_engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/def_engine')
-rw-r--r--src/engine/def_engine/default_engine.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/engine/def_engine/default_engine.h b/src/engine/def_engine/default_engine.h
index f7e6d9746..0d864e514 100644
--- a/src/engine/def_engine/default_engine.h
+++ b/src/engine/def_engine/default_engine.h
@@ -51,6 +51,13 @@ class Default_Engine : public Engine
Algorithm_Factory&) const;
};
+/**
+* Create a cipher mode filter object
+* @param block_cipher a block cipher object
+* @param direction are we encrypting or decrypting?
+* @param mode the name of the cipher mode to use
+* @param padding the mode padding to use (only used for ECB, CBC)
+*/
Keyed_Filter* get_cipher_mode(const BlockCipher* block_cipher,
Cipher_Dir direction,
const std::string& mode,