From 5ca2ff187bab9e370ce6c40e2d480e971404d58f Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 1 Aug 2018 13:08:52 -0700 Subject: [PATCH] DES IV Change the DES_IV_SIZE back to 8 bytes, rather than 16. DES/DES3 was passing the wolfCrypt test becuase the main DES code uses the DES_BLOCK_SIZE when handling the IV. The TLS/SSL code uses the DES_IV_SIZE when generating the session keys. --- wolfssl/wolfcrypt/des3.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/des3.h b/wolfssl/wolfcrypt/des3.h index c4312ab69..a01535b6d 100644 --- a/wolfssl/wolfcrypt/des3.h +++ b/wolfssl/wolfcrypt/des3.h @@ -49,7 +49,7 @@ enum { DES_KEY_SIZE = 8, /* des */ DES3_KEY_SIZE = 24, /* 3 des ede */ - DES_IV_SIZE = 16, + DES_IV_SIZE = 8, /* should be the same as DES_BLOCK_SIZE */ };