diff options
author | Bodo Möller <bodo@openssl.org> | 1999-06-09 13:41:51 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-06-09 13:41:51 +0000 |
commit | c77f47abfa217b808b631fb1e489a442d0c26bbc (patch) | |
tree | 2a0d4f9fe9f5bf8e55f50f9311014d31f79101d2 /crypto/des/cbc_enc.c | |
parent | 8151f52add75ed0b84fece217d7f88160574e02c (diff) |
DES CBC change looks dubious to me.
Diffstat (limited to 'crypto/des/cbc_enc.c')
-rw-r--r-- | crypto/des/cbc_enc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/des/cbc_enc.c b/crypto/des/cbc_enc.c index 9e18b92bc1..c9c881b12a 100644 --- a/crypto/des/cbc_enc.c +++ b/crypto/des/cbc_enc.c @@ -58,6 +58,8 @@ #include "des_locl.h" +/* Note that this is inconsistent with other DES functions in that it doesn't + update ivec */ void des_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, des_key_schedule schedule, des_cblock *ivec, int enc) { @@ -92,9 +94,11 @@ void des_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, tout0=tin[0]; l2c(tout0,out); tout1=tin[1]; l2c(tout1,out); } +#if 0 iv = &(*ivec)[0]; l2c(tout0,iv); l2c(tout1,iv); +#endif } else { @@ -123,9 +127,11 @@ void des_cbc_encrypt(const unsigned char *in, unsigned char *out, long length, /* xor0=tin0; xor1=tin1; */ } +#if 0 iv = &(*ivec)[0]; l2c(xor0,iv); l2c(xor1,iv); +#endif } tin0=tin1=tout0=tout1=xor0=xor1=0; tin[0]=tin[1]=0; |