private static boolean isSupportedByBC(String algorithm) {
        String[] removedBcPrefices = new String[]{
            "AES/ECB",
            "AES/CBC",
            "AES/GCM"
        };
        for (String prefix : removedBcPrefices) {
            if (algorithm.startsWith(prefix)) {
                return false;
            }
        }
        return true;
    }
GCM tag size used for tests.
common/src/test/java/org/conscrypt/javax/crypto/CipherTest.java