summaryrefslogtreecommitdiff
path: root/deps/openssl/openssl/crypto/des/destest.c
diff options
context:
space:
mode:
Diffstat (limited to 'deps/openssl/openssl/crypto/des/destest.c')
-rw-r--r--deps/openssl/openssl/crypto/des/destest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/openssl/openssl/crypto/des/destest.c b/deps/openssl/openssl/crypto/des/destest.c
index c6be342038..f2041c1e11 100644
--- a/deps/openssl/openssl/crypto/des/destest.c
+++ b/deps/openssl/openssl/crypto/des/destest.c
@@ -398,7 +398,7 @@ int main(int argc, char *argv[])
i = strlen((char *)cbc_data) + 1;
/* i=((i+7)/8)*8; */
memcpy(iv3, cbc_iv, sizeof(cbc_iv));
- memset(iv2, '\0', sizeof iv2);
+ memset(iv2, '\0', sizeof(iv2));
DES_ede3_cbcm_encrypt(cbc_data, cbc_out, 16L, &ks, &ks2, &ks3, &iv3, &iv2,
DES_ENCRYPT);
@@ -412,7 +412,7 @@ int main(int argc, char *argv[])
}
*/
memcpy(iv3, cbc_iv, sizeof(cbc_iv));
- memset(iv2, '\0', sizeof iv2);
+ memset(iv2, '\0', sizeof(iv2));
DES_ede3_cbcm_encrypt(cbc_out, cbc_in, i, &ks, &ks2, &ks3, &iv3, &iv2,
DES_DECRYPT);
if (memcmp(cbc_in, cbc_data, strlen((char *)cbc_data) + 1) != 0) {