diff options
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); |