diff options
author | Jack Lloyd <[email protected]> | 2017-10-20 18:13:11 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-10-20 18:13:11 -0400 |
commit | a6e051bea6e7341f8f7b8ab40e042e1e099b9b8b (patch) | |
tree | 24f1b7d9e95fab40f0aeceff2b4bda8d639c2a18 /src/lib/tls | |
parent | 2a5f2c78fcf44987e38c79ea92b95bacec6ee004 (diff) |
Remove redundant check
CBC mode already has this same size check.
[ci skip]
Diffstat (limited to 'src/lib/tls')
-rw-r--r-- | src/lib/tls/tls_cbc/tls_cbc.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/tls/tls_cbc/tls_cbc.cpp b/src/lib/tls/tls_cbc/tls_cbc.cpp index f38419ba7..ca80a3d3c 100644 --- a/src/lib/tls/tls_cbc/tls_cbc.cpp +++ b/src/lib/tls/tls_cbc/tls_cbc.cpp @@ -150,9 +150,6 @@ void TLS_CBC_HMAC_AEAD_Encryption::set_associated_data(const uint8_t ad[], size_ void TLS_CBC_HMAC_AEAD_Encryption::cbc_encrypt_record(uint8_t buf[], size_t buf_size) { - const size_t blocks = buf_size / block_size(); - BOTAN_ASSERT(buf_size % block_size() == 0, "Valid CBC input"); - cbc().start(cbc_state()); cbc().process(buf, buf_size); |