diff options
author | lloyd <[email protected]> | 2013-08-19 14:31:17 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-08-19 14:31:17 +0000 |
commit | 394033c9fe998dc6a64162414bbc2b705f1ec901 (patch) | |
tree | 0c5f8331cde1296a2c266800cbc5c594d128098d /checks/ocb.cpp | |
parent | 178fe54130c3582e5a292bac063f53a77dc4c4df (diff) |
Add Cipher_Mode intermediate class. Add missing BOTAN_DLL exports
Diffstat (limited to 'checks/ocb.cpp')
-rw-r--r-- | checks/ocb.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/checks/ocb.cpp b/checks/ocb.cpp index abd84df7a..d9a76236e 100644 --- a/checks/ocb.cpp +++ b/checks/ocb.cpp @@ -2,6 +2,7 @@ #include "validate.h" #include <botan/ocb.h> +#include <botan/cbc.h> #include <botan/hex.h> #include <botan/sha2_32.h> #include <botan/aes.h> @@ -18,6 +19,8 @@ std::vector<byte> ocb_encrypt(const SymmetricKey& key, { //std::unique_ptr<AEAD_Mode> ocb = get_aead("AES-128/OCB", ENCRYPTION); + CBC_Encryption cbc(new AES_128, nullptr); + OCB_Encryption ocb(new AES_128); ocb.set_key(key); |