BCJSSE Fix TLS 1.0 CBC mode
@@ -77,7 +77,7 @@ public int doFinal(byte[] input, int inputOffset, int inputLength, byte[] output
if (isEncrypting)
{
- nextIV = Arrays.copyOfRange(output, outputOffset + totLen + inputLength - cipher.getBlockSize(), outputOffset + totLen + inputLength);
+ nextIV = Arrays.copyOfRange(output, outputOffset + totLen - cipher.getBlockSize(), outputOffset + totLen);
}
return totLen;
