private synchronized static int getEncryptMode(String algorithm) {
        if (isOnlyWrappingAlgorithm(algorithm)) {
            return Cipher.WRAP_MODE;
        }
        return Cipher.ENCRYPT_MODE;
    }
GCM tag size used for tests.
common/src/test/java/org/conscrypt/javax/crypto/CipherTest.java