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.
This commit is contained in:
John Safranek 2018-08-01 13:08:52 -07:00
parent 8bc5bc227d
commit 5ca2ff187b

View File

@ -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 */
};