fix StoreExternalIV and SetInternalIV for 3DES

This commit is contained in:
John Safranek
2015-03-26 11:09:36 -07:00
parent b5cac58845
commit 0f4216360e

View File

@ -7828,7 +7828,7 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
case DES_EDE3_CBC_TYPE : case DES_EDE3_CBC_TYPE :
WOLFSSL_MSG("DES EDE3 CBC"); WOLFSSL_MSG("DES EDE3 CBC");
memcpy(ctx->iv, &ctx->cipher.des.reg, DES_BLOCK_SIZE); memcpy(ctx->iv, &ctx->cipher.des3.reg, DES_BLOCK_SIZE);
break; break;
#endif #endif
@ -7889,7 +7889,7 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
case DES_EDE3_CBC_TYPE : case DES_EDE3_CBC_TYPE :
WOLFSSL_MSG("DES EDE3 CBC"); WOLFSSL_MSG("DES EDE3 CBC");
memcpy(&ctx->cipher.des.reg, ctx->iv, DES_BLOCK_SIZE); memcpy(&ctx->cipher.des3.reg, ctx->iv, DES_BLOCK_SIZE);
break; break;
#endif #endif