RSA-OAEP vs. RSA-OAEP-MGF1P
Brent Putman
putmanb at georgetown.edu
Tue Feb 3 16:56:39 EST 2015
On 2/3/15 10:32 AM, Cantor, Scott wrote:
>> Shouldn't the SP be explicitly indicating which MGFs and digest algorithms it
>> supports for use with RSA-OAEP though?
> Technically, but you can see how bloated that's going to get pretty quickly. Brent would have to comment as to whether the IdP would handle it.
Yes, as you already saw we do fully support expressed OAEP parameters in
metadata, etc. However, in reviewing this and the issues raised, I
think there is a bug in the code right now. Relatively easy to fix.
Right now when considering a candidate Credential (KeyDescriptor) and
samlmd:EncryptionMethod pair, only the cred and
EncryptionMethod at Algorithm are considered. If those are acceptable,
then that pair gets picked. Then later the RSAOAEPParamers is resolved
from the EncryptionMethod. If the DigestMethod and/or MGF is unusable
(runtime support and/or policy), it falls back to configuration for those.
I think that's wrong. I think the eval of the Credential and
EncryptionMethod should also take into account the various OAEP algo
params. If a DigestMethod and/or MGF are present, then they need to be
acceptable or else you have to reject the whole EncryptionMethod. That
makes the candidate eval fall through to the next listed EncryptionMethod.
That would be necessary if you want to list them in metaddata like:
#rsa-oaep with SHA-512
#rsa-oaep with SHA-256
Right now, if say SHA-512 was unsupported, you'd wind up getting the
config default of SHA-1 rather than the next expressed preference of
SHA-256.
I'll open an issue on that, should be able to get that addressed this
week. Do we have a tentative timeline for 3.1 yet?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/dev/attachments/20150203/49b6d309/attachment.html
More information about the dev
mailing list