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/gcm | |
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/gcm')
-rw-r--r-- | src/lib/modes/aead/gcm/gcm.cpp | 2 | ||||
-rw-r--r-- | src/lib/modes/aead/gcm/gcm.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/modes/aead/gcm/gcm.cpp b/src/lib/modes/aead/gcm/gcm.cpp index b39e6ac92..2b60f332e 100644 --- a/src/lib/modes/aead/gcm/gcm.cpp +++ b/src/lib/modes/aead/gcm/gcm.cpp @@ -206,7 +206,7 @@ void GCM_Mode::set_associated_data(const byte ad[], size_t ad_len) m_ghash->set_associated_data(ad, ad_len); } -secure_vector<byte> GCM_Mode::start(const byte nonce[], size_t nonce_len) +secure_vector<byte> GCM_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/gcm/gcm.h b/src/lib/modes/aead/gcm/gcm.h index 41cb189d9..918f3c7c7 100644 --- a/src/lib/modes/aead/gcm/gcm.h +++ b/src/lib/modes/aead/gcm/gcm.h @@ -22,8 +22,6 @@ class GHASH; class BOTAN_DLL GCM_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; @@ -39,8 +37,6 @@ class BOTAN_DLL GCM_Mode : public AEAD_Mode void clear() override; protected: - void key_schedule(const byte key[], size_t length) override; - GCM_Mode(BlockCipher* cipher, size_t tag_size); const size_t BS = 16; @@ -50,6 +46,10 @@ class BOTAN_DLL GCM_Mode : public AEAD_Mode std::unique_ptr<StreamCipher> m_ctr; std::unique_ptr<GHASH> m_ghash; + private: + secure_vector<byte> start_raw(const byte nonce[], size_t nonce_len) override; + + void key_schedule(const byte key[], size_t length) override; }; /** |