summaryrefslogtreecommitdiffstats
path: root/src/crypto/modes/cfb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/modes/cfb.c')
-rw-r--r--src/crypto/modes/cfb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crypto/modes/cfb.c b/src/crypto/modes/cfb.c
index 738a438..c58614b 100644
--- a/src/crypto/modes/cfb.c
+++ b/src/crypto/modes/cfb.c
@@ -46,7 +46,7 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
* ==================================================================== */
-#include <openssl/modes.h>
+#include <openssl/type_check.h>
#include <assert.h>
#include <string.h>
@@ -54,6 +54,8 @@
#include "internal.h"
+OPENSSL_COMPILE_ASSERT((16 % sizeof(size_t)) == 0, bad_size_t_size);
+
void CRYPTO_cfb128_encrypt(const uint8_t *in, uint8_t *out, size_t len,
const void *key, uint8_t ivec[16], int *num, int enc,
block128_f block) {
@@ -61,7 +63,6 @@ void CRYPTO_cfb128_encrypt(const uint8_t *in, uint8_t *out, size_t len,
size_t l = 0;
assert(in && out && key && ivec && num);
- assert((16 % sizeof(size_t)) == 0);
n = *num;