byte[] decodeAndVerify(short type, InputStream input, int len) throws IOException checkLength(len, ciphertextLimit, AlertDescription.record_overflow); checkLength(decoded.length, compressedLimit, AlertDescription.record_overflow); checkLength(decoded.length, plaintextLimit, AlertDescription.decompression_failure);
byte[] decoded = readCipher.decodeCiphertext(seqNo, type, buf, 0, buf.length); checkLength(decoded.length, compressedLimit, AlertDescription.record_overflow); checkLength(decoded.length, plaintextLimit, AlertDescription.decompression_failure);
checkLength(plaintextLength, plaintextLimit, AlertDescription.internal_error); checkLength(compressed.length, plaintextLength + 1024, AlertDescription.internal_error); checkLength(ciphertext.length, ciphertextLimit, AlertDescription.internal_error);
checkLength(plaintextLength, plaintextLimit, AlertDescription.internal_error); checkLength(compressed.length, plaintextLength + 1024, AlertDescription.internal_error); checkLength(ciphertext.length, ciphertextLimit, AlertDescription.internal_error);
checkLength(length, ciphertextLimit, AlertDescription.record_overflow);
checkLength(length, ciphertextLimit, AlertDescription.record_overflow);