eliminate redandant pad block, DES3

This commit is contained in:
Takashi Kojo
2017-08-22 08:23:39 +09:00
committed by Jacob Barthelmeh
parent e8d628f61b
commit 2fdf98ebd4

View File

@@ -12933,7 +12933,10 @@ int BuildMessage(WOLFSSL* ssl, byte* output, int outSz, const byte* input,
}
args->sz += 1; /* pad byte */
args->pad = (args->sz - args->headerSz) % blockSz;
args->pad = blockSz - args->pad;
#ifdef OPENSSL_EXTRA
if(args->pad != 0)
#endif
args->pad = blockSz - args->pad;
args->sz += args->pad;
}