projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove code that prints "<SPACES/NULS>" in hexdumps
[openssl.git]
/
crypto
/
evp
/
e_des3.c
diff --git
a/crypto/evp/e_des3.c
b/crypto/evp/e_des3.c
index 0e910d6d8085b902ac9dac181c5d94585ded51bf..ab8126e5c9cf689877b2c9d66a6aab2030146392 100644
(file)
--- a/
crypto/evp/e_des3.c
+++ b/
crypto/evp/e_des3.c
@@
-212,6
+212,8
@@
static int des_ede3_cfb1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
size_t n;
unsigned char c[1], d[1];
+ if (!EVP_CIPHER_CTX_test_flags(ctx, EVP_CIPH_FLAG_LENGTH_BITS))
+ inl *= 8;
for (n = 0; n < inl; ++n) {
c[0] = (in[n / 8] & (1 << (7 - n % 8))) ? 0x80 : 0;
DES_ede3_cfb_encrypt(c, d, 1, 1,