private static boolean isRandomizedEncryption(String algorithm) {
        return algorithm.endsWith("/PKCS1PADDING") || algorithm.endsWith("/OAEPPADDING")
                || algorithm.contains("/OAEPWITH");
    }
GCM tag size used for tests.
common/src/test/java/org/conscrypt/javax/crypto/CipherTest.java