You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2024/11/05 06:39:00 UTC
[jira] [Closed] (SANTUARIO-617) XML Encryption spec violation with original RSA OAEP algorithm
[ https://issues.apache.org/jira/browse/SANTUARIO-617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Colm O hEigeartaigh closed SANTUARIO-617.
-----------------------------------------
> XML Encryption spec violation with original RSA OAEP algorithm
> ---------------------------------------------------------------
>
> Key: SANTUARIO-617
> URL: https://issues.apache.org/jira/browse/SANTUARIO-617
> Project: Santuario
> Issue Type: Bug
> Components: Java
> Affects Versions: Java 3.0.4, Java 4.0.2
> Environment: Java 17
> Reporter: Brent Putman
> Assignee: Colm O hEigeartaigh
> Priority: Major
> Fix For: Java 3.0.5, Java 4.0.3
>
>
> The latest release introduced a violation of the XML Encryption 1.1 spec.
> XML Encryption 1.1 introduced the "parameterized" RSA OAEP algorithms, where amongst other things the mask generation function used can be explicitly indicated via an {{<MGF>}} child element.
> For the case of the original RSA OAEP algorithm defined in XML Encryption 1.0 however (the {{#rsa-oaep-mgf1p}} one), the MGF is implicit in the algorithm URI and is fixed. So 1.1 says for that case:
> {noformat}
> The http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p identifier defines the mask generation
> function as the fixed value of MGF1 with SHA1. In this case the optional xenc11:MGF element
> of the xenc:EncryptionMethod element MUST NOT be provided. {noformat}
> The latest releases have started emitting an MGF for this case:
> {noformat}
> <xenc:EncryptedKey xmlns:xenc="http://www.w3.org/2001/04/xmlenc#">
> <xenc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p">
> <ds:DigestMethod xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
> <xenc11:MGF xmlns:xenc11="http://www.w3.org/2009/xmlenc11#" Algorithm="http://www.w3.org/2009/xmlenc11#mgf1sha1"/>
> </xenc:EncryptionMethod>
> <xenc:CipherData>
> <xenc:CipherValue>Pohvoo+nKPv3aozAwsVOg6th+Iwq4ZXX7abKGa8Q/VA6EUtqHq0p8R16MGqJAOAShumzu29n4sf5
> F50YIYrTwQDWNet4U9E7qEMLXdmK/h6VhpE9Qo8wJnllVHW/vZ1+1XkWS5IDfosWsoylJbfTfOWn
> FqAy9C9GGuQuCmngPpo=</xenc:CipherValue>
> </xenc:CipherData>
> </xenc:EncryptedKey>
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)