aboutsummaryrefslogtreecommitdiffstats
path: root/src/modes/aead
diff options
context:
space:
mode:
Diffstat (limited to 'src/modes/aead')
-rw-r--r--src/modes/aead/aead.h2
-rw-r--r--src/modes/aead/ccm/ccm.cpp2
-rw-r--r--src/modes/aead/ccm/ccm.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/modes/aead/aead.h b/src/modes/aead/aead.h
index d03cb295d..8df98fcad 100644
--- a/src/modes/aead/aead.h
+++ b/src/modes/aead/aead.h
@@ -48,7 +48,7 @@ class BOTAN_DLL AEAD_Mode : public Cipher_Mode
* Default AEAD nonce size (a commonly supported value among AEAD
* modes, and large enough that random collisions are unlikely).
*/
- size_t default_nonce_size() const override { return 12; }
+ size_t default_nonce_length() const override { return 12; }
/**
* Return the size of the authentication tag used (in bytes)
diff --git a/src/modes/aead/ccm/ccm.cpp b/src/modes/aead/ccm/ccm.cpp
index fb35172cc..50fc38738 100644
--- a/src/modes/aead/ccm/ccm.cpp
+++ b/src/modes/aead/ccm/ccm.cpp
@@ -47,7 +47,7 @@ bool CCM_Mode::valid_nonce_length(size_t n) const
return (n == (15-L()));
}
-size_t CCM_Mode::default_nonce_size() const
+size_t CCM_Mode::default_nonce_length() const
{
return (15-L());
}
diff --git a/src/modes/aead/ccm/ccm.h b/src/modes/aead/ccm/ccm.h
index a62c84f55..b9ce0b30b 100644
--- a/src/modes/aead/ccm/ccm.h
+++ b/src/modes/aead/ccm/ccm.h
@@ -37,7 +37,7 @@ class BOTAN_DLL CCM_Mode : public AEAD_Mode
bool valid_nonce_length(size_t) const override;
- size_t default_nonce_size() const override;
+ size_t default_nonce_length() const override;
void clear();