private static boolean isAEAD(String algorithm) {
        return "GCM".equals(algorithm) || algorithm.contains("/GCM/")
                || algorithm.contains("/GCM-SIV/")
                || algorithm.equals("CHACHA20/POLY1305/NOPADDING");
    }
GCM tag size used for tests.
common/src/test/java/org/conscrypt/javax/crypto/CipherTest.java