protected int endOfFileReached()

in src/main/java/software/amazon/encryption/s3/internal/CipherInputStream.java [167:181]


    protected int endOfFileReached() {
        eofReached = true;
        try {
            outputBuffer = cipher.doFinal();
            if (outputBuffer == null) {
                return -1;
            }
            currentPosition = 0;
            return maxPosition = outputBuffer.length;
        } catch (IllegalBlockSizeException | BadPaddingException ignore) {
            // Swallow exceptions
        }
        return -1;

    }