aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-12-10 11:29:38 -0500
committerJack Lloyd <[email protected]>2019-12-10 11:29:38 -0500
commit3ecca9aa149f35048ece9a0d8f5c16f8a5a17c2b (patch)
tree111b57d0518e9a54a17b8f5cb8b3e095fa5b302c /src/lib
parentdb52838550a248cd430d10f910d90f537049ad6b (diff)
parent46238d5ab5e1cb2d16f8d4da6adfdf04c372c156 (diff)
Merge GH #2224 Add CCM mode to BSI policy
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/modes/aead/ccm/ccm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/modes/aead/ccm/ccm.cpp b/src/lib/modes/aead/ccm/ccm.cpp
index 7a82f1a47..ab2cfcb95 100644
--- a/src/lib/modes/aead/ccm/ccm.cpp
+++ b/src/lib/modes/aead/ccm/ccm.cpp
@@ -118,7 +118,7 @@ void CCM_Mode::encode_length(uint64_t len, uint8_t out[])
{
const size_t len_bytes = L();
- BOTAN_ASSERT_NOMSG(len_bytes >= 1 && len_bytes <= 8);
+ BOTAN_ASSERT_NOMSG(len_bytes >= 2 && len_bytes <= 8);
for(size_t i = 0; i != len_bytes; ++i)
out[len_bytes-1-i] = get_byte(sizeof(uint64_t)-1-i, len);