aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/modes
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-03 09:57:04 -0400
committerJack Lloyd <[email protected]>2017-10-03 09:57:04 -0400
commit26517eb98af4c3bb1faf38653ab55ae0956578eb (patch)
tree61ebd8ee9568369a4f2e6ff1806d47213f20032d /src/lib/modes
parent698f78182485587b6aa7773a43beac9033064e89 (diff)
Avoid empty methods, use =default or add a comment
Sonar
Diffstat (limited to 'src/lib/modes')
-rw-r--r--src/lib/modes/mode_pad/mode_pad.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/modes/mode_pad/mode_pad.h b/src/lib/modes/mode_pad/mode_pad.h
index 4c539b181..cc196d251 100644
--- a/src/lib/modes/mode_pad/mode_pad.h
+++ b/src/lib/modes/mode_pad/mode_pad.h
@@ -136,7 +136,10 @@ class BOTAN_PUBLIC_API(2,0) ESP_Padding final : public BlockCipherModePaddingMet
class BOTAN_PUBLIC_API(2,0) Null_Padding final : public BlockCipherModePaddingMethod
{
public:
- void add_padding(secure_vector<uint8_t>&, size_t, size_t) const override {}
+ void add_padding(secure_vector<uint8_t>&, size_t, size_t) const override
+ {
+ /* no padding */
+ }
size_t unpad(const uint8_t[], size_t size) const override { return size; }