forked from wolfSSL/wolfssl
Fix for size calculation for encrypt then mac without openssl extra enabled. Fix for cast warning.
This commit is contained in:
committed by
Jacob Barthelmeh
parent
6f5be32d3a
commit
628a91efda
@ -18320,10 +18320,10 @@ int BuildMessage(WOLFSSL* ssl, byte* output, int outSz, const byte* input,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
{
|
||||||
args->pad = (args->sz - args->headerSz) % blockSz;
|
args->pad = (args->sz - args->headerSz) % blockSz;
|
||||||
#ifdef OPENSSL_EXTRA
|
}
|
||||||
if(args->pad != 0)
|
if (args->pad != 0)
|
||||||
#endif
|
|
||||||
args->pad = blockSz - args->pad;
|
args->pad = blockSz - args->pad;
|
||||||
args->sz += args->pad;
|
args->sz += args->pad;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user