lib/hcrypto: DES_cfb64_encrypt init buffer in decrypt path

This commit is contained in:
Jeffrey Altman
2022-01-20 21:27:22 -05:00
parent 8946f0de9d
commit 2e54dc7aae

View File

@@ -728,6 +728,7 @@ DES_cfb64_encrypt(const void *in, void *out,
int i = *num;
unsigned char c;
memset(tmp, 0, DES_CBLOCK_LEN);
while (length > 0) {
if (i == 0) {
DES_encrypt(uiv, ks, 1);