santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "c.holper@ades.at" <c.hol...@ades.at>
Subject Re: MGF1 other than SHA1
Date Thu, 07 Jul 2016 21:04:05 GMT
Thank you!
I found it and I think is works now.

Christoph

On 2016-07-07 22:16, Cantor, Scott wrote:
>> 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
>              }
>              rsa->setMGF(mgf);
>          }
>
> That should be mapping from the constants to the right MGF implementation, and those
are in an enum in the constants header.
>
> -- Scott
>


Mime
View raw message