aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-09-30 12:26:01 -0400
committerJack Lloyd <[email protected]>2017-09-30 12:26:01 -0400
commit406c8e6668de8241bfd889bb4c29ea780b38a859 (patch)
tree996e745ddf82dd8696d8e397258345ffe2424b9a /src
parent91926d4adfbad07ea8bd5db5119d31feb049f7f9 (diff)
Avoid bogus declarations in GMAC
These functions are declared/defined on MessageAuthenticationCode, and call the start_msg virtual.
Diffstat (limited to 'src')
-rw-r--r--src/lib/mac/gmac/gmac.h28
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();