santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cantor, Scott" <>
Subject RE: MGF1 other than SHA1
Date Thu, 07 Jul 2016 20:16:19 GMT
> I just found OAEP-MGF-constants in the code but they were never used.

Pretty sure that's wrong.

I see this code in the algorithm handler code for RSA-OAEP:

        const XMLCh* mgfalg = encryptionMethod->getMGF();
        if (mgfalg && *mgfalg) {
            maskGenerationFunc mgf;
            if (!XSECmapURIToMaskGenerationFunc(mgfalg, mgf)) {
		// error

That should be mapping from the constants to the right MGF implementation, and those are in
an enum in the constants header.

-- Scott

View raw message