diff options
-rw-r--r-- | src/def_alg.cpp | 8 | ||||
-rw-r--r-- | src/modes/mode_pad/mode_pad.cpp (renamed from src/mode_pad.cpp) | 0 | ||||
-rw-r--r-- | src/modes/mode_pad/mode_pad.h (renamed from include/mode_pad.h) | 0 | ||||
-rw-r--r-- | src/modes/mode_pad/modinfo.txt | 10 |
4 files changed, 16 insertions, 2 deletions
diff --git a/src/def_alg.cpp b/src/def_alg.cpp index 80d3a771f..b13439fe2 100644 --- a/src/def_alg.cpp +++ b/src/def_alg.cpp @@ -7,8 +7,6 @@ #include <botan/libstate.h> #include <botan/parsing.h> -#include <botan/mode_pad.h> - #if defined(BOTAN_HAS_AES) #include <botan/aes.h> #endif @@ -118,6 +116,10 @@ #include <botan/wid_wake.h> #endif +#if defined(BOTAN_HAS_CIPHER_MODE_PADDING) + #include <botan/mode_pad.h> +#endif + #if defined(BOTAN_HAS_ADLER32) #include <botan/adler32.h> #endif @@ -559,10 +561,12 @@ Default_Engine::find_bc_pad(const std::string& algo_spec) const const std::string algo_name = global_state().deref_alias(name[0]); +#if defined(BOTAN_HAS_CIPHER_MODE_PADDING) HANDLE_TYPE_NO_ARGS("PKCS7", PKCS7_Padding); HANDLE_TYPE_NO_ARGS("OneAndZeros", OneAndZeros_Padding); HANDLE_TYPE_NO_ARGS("X9.23", ANSI_X923_Padding); HANDLE_TYPE_NO_ARGS("NoPadding", Null_Padding); +#endif return 0; } diff --git a/src/mode_pad.cpp b/src/modes/mode_pad/mode_pad.cpp index 3a07afcb4..3a07afcb4 100644 --- a/src/mode_pad.cpp +++ b/src/modes/mode_pad/mode_pad.cpp diff --git a/include/mode_pad.h b/src/modes/mode_pad/mode_pad.h index 4041efcdc..4041efcdc 100644 --- a/include/mode_pad.h +++ b/src/modes/mode_pad/mode_pad.h diff --git a/src/modes/mode_pad/modinfo.txt b/src/modes/mode_pad/modinfo.txt new file mode 100644 index 000000000..f22cf7411 --- /dev/null +++ b/src/modes/mode_pad/modinfo.txt @@ -0,0 +1,10 @@ +realname "Cipher Mode Padding Method" + +define CIPHER_MODE_PADDING + +load_on auto + +<add> +mode_pad.cpp +mode_pad.h +</add> |