diff options
author | Jack Lloyd <[email protected]> | 2017-09-30 12:26:01 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-30 12:26:01 -0400 |
commit | 406c8e6668de8241bfd889bb4c29ea780b38a859 (patch) | |
tree | 996e745ddf82dd8696d8e397258345ffe2424b9a /src/lib/mac | |
parent | 91926d4adfbad07ea8bd5db5119d31feb049f7f9 (diff) |
Avoid bogus declarations in GMAC
These functions are declared/defined on MessageAuthenticationCode,
and call the start_msg virtual.
Diffstat (limited to 'src/lib/mac')
-rw-r--r-- | src/lib/mac/gmac/gmac.h | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/src/lib/mac/gmac/gmac.h b/src/lib/mac/gmac/gmac.h index eb14b8e11..970f9c047 100644 --- a/src/lib/mac/gmac/gmac.h +++ b/src/lib/mac/gmac/gmac.h @@ -16,6 +16,9 @@ namespace Botan { /** * GMAC +* +* GMAC requires a unique initialization vector be used for each message. +* This must be provided via the MessageAuthenticationCode::start() API */ class BOTAN_PUBLIC_API(2,0) GMAC final : public MessageAuthenticationCode, public GHASH { @@ -25,31 +28,6 @@ class BOTAN_PUBLIC_API(2,0) GMAC final : public MessageAuthenticationCode, publi size_t output_length() const override; MessageAuthenticationCode* clone() const override; - /** - * Must be called to set the initialization vector prior to GMAC - * calculation. - * - * @param nonce Initialization vector. - * @param nonce_len size of initialization vector. - */ - void start(const uint8_t nonce[], size_t nonce_len); - - /** - * Must be called to set the initialization vector prior to GMAC - * calculation. - * - * @param nonce Initialization vector. - */ - void start(const secure_vector<uint8_t>& nonce); - - /** - * Must be called to set the initialization vector prior to GMAC - * calculation. - * - * @param nonce Initialization vector. - */ - void start(const std::vector<uint8_t>& nonce); - Key_Length_Specification key_spec() const override { return m_cipher->key_spec(); |