diff options
author | lloyd <[email protected]> | 2014-11-05 12:00:24 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2014-11-05 12:00:24 +0000 |
commit | 4f474481f46bffc095ae104485b8da95bcb03973 (patch) | |
tree | 2da1bf58bdce2a2e9a1a8a6f8d27dbdb3a87e174 /src/lib/modes/aead/ocb | |
parent | f78e5e3fbd87d2e903f5ff4a230b65ac6d44f281 (diff) |
Replace Transformatio::nstart with start_raw so we can do a full set
of overloads in the base class with the same name.
Diffstat (limited to 'src/lib/modes/aead/ocb')
-rw-r--r-- | src/lib/modes/aead/ocb/ocb.cpp | 2 | ||||
-rw-r--r-- | src/lib/modes/aead/ocb/ocb.h | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/modes/aead/ocb/ocb.cpp b/src/lib/modes/aead/ocb/ocb.cpp index 5909e0c12..8bb45f217 100644 --- a/src/lib/modes/aead/ocb/ocb.cpp +++ b/src/lib/modes/aead/ocb/ocb.cpp @@ -223,7 +223,7 @@ OCB_Mode::update_nonce(const byte nonce[], size_t nonce_len) return offset; } -secure_vector<byte> OCB_Mode::start(const byte nonce[], size_t nonce_len) +secure_vector<byte> OCB_Mode::start_raw(const byte nonce[], size_t nonce_len) { if(!valid_nonce_length(nonce_len)) throw Invalid_IV_Length(name(), nonce_len); diff --git a/src/lib/modes/aead/ocb/ocb.h b/src/lib/modes/aead/ocb/ocb.h index 24a6c474f..a7293ffcb 100644 --- a/src/lib/modes/aead/ocb/ocb.h +++ b/src/lib/modes/aead/ocb/ocb.h @@ -28,8 +28,6 @@ class L_computer; class BOTAN_DLL OCB_Mode : public AEAD_Mode { public: - secure_vector<byte> start(const byte nonce[], size_t nonce_len) override; - void set_associated_data(const byte ad[], size_t ad_len) override; std::string name() const override; @@ -64,6 +62,8 @@ class BOTAN_DLL OCB_Mode : public AEAD_Mode secure_vector<byte> m_offset; secure_vector<byte> m_ad_hash; private: + secure_vector<byte> start_raw(const byte nonce[], size_t nonce_len) override; + secure_vector<byte> update_nonce(const byte nonce[], size_t nonce_len); size_t m_tag_size = 0; |