diff options
Diffstat (limited to 'src/modes')
-rw-r--r-- | src/modes/aead/aead.h | 2 | ||||
-rw-r--r-- | src/modes/aead/ccm/ccm.cpp | 2 | ||||
-rw-r--r-- | src/modes/aead/ccm/ccm.h | 2 | ||||
-rw-r--r-- | src/modes/cbc/cbc.cpp | 2 | ||||
-rw-r--r-- | src/modes/cbc/cbc.h | 2 | ||||
-rw-r--r-- | src/modes/cfb/cfb.cpp | 2 | ||||
-rw-r--r-- | src/modes/cfb/cfb.h | 2 | ||||
-rw-r--r-- | src/modes/ecb/ecb.cpp | 2 | ||||
-rw-r--r-- | src/modes/ecb/ecb.h | 2 | ||||
-rw-r--r-- | src/modes/xts/xts.cpp | 2 | ||||
-rw-r--r-- | src/modes/xts/xts.h | 2 |
11 files changed, 11 insertions, 11 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(); diff --git a/src/modes/cbc/cbc.cpp b/src/modes/cbc/cbc.cpp index 482588cf5..31834bade 100644 --- a/src/modes/cbc/cbc.cpp +++ b/src/modes/cbc/cbc.cpp @@ -47,7 +47,7 @@ Key_Length_Specification CBC_Mode::key_spec() const return cipher().key_spec(); } -size_t CBC_Mode::default_nonce_size() const +size_t CBC_Mode::default_nonce_length() const { return cipher().block_size(); } diff --git a/src/modes/cbc/cbc.h b/src/modes/cbc/cbc.h index 8638c8a05..726d5d080 100644 --- a/src/modes/cbc/cbc.h +++ b/src/modes/cbc/cbc.h @@ -29,7 +29,7 @@ class BOTAN_DLL CBC_Mode : public Cipher_Mode Key_Length_Specification key_spec() const override; - size_t default_nonce_size() const override; + size_t default_nonce_length() const override; bool valid_nonce_length(size_t n) const override; diff --git a/src/modes/cfb/cfb.cpp b/src/modes/cfb/cfb.cpp index 2edb917b4..7721e1487 100644 --- a/src/modes/cfb/cfb.cpp +++ b/src/modes/cfb/cfb.cpp @@ -54,7 +54,7 @@ Key_Length_Specification CFB_Mode::key_spec() const return cipher().key_spec(); } -size_t CFB_Mode::default_nonce_size() const +size_t CFB_Mode::default_nonce_length() const { return cipher().block_size(); } diff --git a/src/modes/cfb/cfb.h b/src/modes/cfb/cfb.h index 46b1997d2..984e5cb96 100644 --- a/src/modes/cfb/cfb.h +++ b/src/modes/cfb/cfb.h @@ -33,7 +33,7 @@ class BOTAN_DLL CFB_Mode : public Cipher_Mode size_t output_length(size_t input_length) const override; - size_t default_nonce_size() const override; + size_t default_nonce_length() const override; bool valid_nonce_length(size_t n) const override; diff --git a/src/modes/ecb/ecb.cpp b/src/modes/ecb/ecb.cpp index 1b73da64f..f026eb035 100644 --- a/src/modes/ecb/ecb.cpp +++ b/src/modes/ecb/ecb.cpp @@ -42,7 +42,7 @@ Key_Length_Specification ECB_Mode::key_spec() const return cipher().key_spec(); } -size_t ECB_Mode::default_nonce_size() const +size_t ECB_Mode::default_nonce_length() const { return 0; } diff --git a/src/modes/ecb/ecb.h b/src/modes/ecb/ecb.h index 8ab62fa45..9545a33ea 100644 --- a/src/modes/ecb/ecb.h +++ b/src/modes/ecb/ecb.h @@ -29,7 +29,7 @@ class BOTAN_DLL ECB_Mode : public Cipher_Mode Key_Length_Specification key_spec() const override; - size_t default_nonce_size() const override; + size_t default_nonce_length() const override; bool valid_nonce_length(size_t n) const override; diff --git a/src/modes/xts/xts.cpp b/src/modes/xts/xts.cpp index 80b7ed7f3..02da5fa5d 100644 --- a/src/modes/xts/xts.cpp +++ b/src/modes/xts/xts.cpp @@ -86,7 +86,7 @@ Key_Length_Specification XTS_Mode::key_spec() const return cipher().key_spec().multiple(2); } -size_t XTS_Mode::default_nonce_size() const +size_t XTS_Mode::default_nonce_length() const { return cipher().block_size(); } diff --git a/src/modes/xts/xts.h b/src/modes/xts/xts.h index a1f0f1626..49f2a3458 100644 --- a/src/modes/xts/xts.h +++ b/src/modes/xts/xts.h @@ -30,7 +30,7 @@ class BOTAN_DLL XTS_Mode : public Cipher_Mode Key_Length_Specification key_spec() const override; - size_t default_nonce_size() const override; + size_t default_nonce_length() const override; bool valid_nonce_length(size_t n) const override; |