forked from wolfSSL/wolfssl
eliminate redandant pad block, DES3
This commit is contained in:
committed by
Jacob Barthelmeh
parent
e8d628f61b
commit
2fdf98ebd4
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user