private static String getDigestAlgorithmCanonicalName(String algorithm) {
        if (DIGEST_NAME_TO_OID.containsKey(algorithm)) {
            return algorithm.toUpperCase(Locale.US);
        }

        String nameByOid = DIGEST_OID_TO_NAME.get(algorithm);
        if (nameByOid != null) {
            return nameByOid;
        }

        return algorithm;
    }
Payload of SEQUENCE extends beyond the SEQUENCE.
common/src/test/java/org/conscrypt/java/security/AlgorithmParametersPSSTest.java