You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Stefan Müller <st...@it.nrw.de> on 2015/08/05 08:20:38 UTC

Setting MGF Algorithm

Since wss4j 2.0 it is possible use MGF Algorithms other than mgf1sha1 but I
can't find a way to set this from cxf via let's say a property. I think it
is also not possible to set the wss4j property (ENC_MGF_ALGO) in an
interceptor by myself. 

I'm using a DOM based webservice with WS-SecurityPolicy and a custom
AlgorithmSuite. 


Maybe someone can help. Thanks in advance.
Stefan



--
View this message in context: http://cxf.547215.n5.nabble.com/Setting-MGF-Algorithm-tp5759712.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Setting MGF Algorithm

Posted by Colm O hEigeartaigh <co...@apache.org>.
Hi Stefan,

You're quite right - I've fixed WSS4J not to output or process the
xenc11:MGF algorithm unless the keytransport algorithm is xenc11, and
updated the CXF system test.

Colm.

On Fri, Aug 7, 2015 at 4:32 PM, Stefan Müller <st...@it.nrw.de>
wrote:

> Hi Colm,
> first of all thanks for help.
>
> I already tested the new functionality and it works fine but during these
> tests I have noticed something.
> For the testcase you added a new AlgorithmSuite with
> "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" in combination with
> MGF256, but I think this is not allowed.
> It should be "http://www.w3.org/2009/xmlenc11#rsa-oaep" with MGF SHA* (for
> example 256)
>
> The problem is that even if you use mgf1p in combination with MGF256 no
> exception is thrown. What do you think about it?
>
>
> Greets
> Stefan
>
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Setting-MGF-Algorithm-tp5759712p5759869.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com

Re: Setting MGF Algorithm

Posted by Stefan Müller <st...@it.nrw.de>.
Hi Colm, 
first of all thanks for help. 

I already tested the new functionality and it works fine but during these
tests I have noticed something. 
For the testcase you added a new AlgorithmSuite with
"http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" in combination with
MGF256, but I think this is not allowed. 
It should be "http://www.w3.org/2009/xmlenc11#rsa-oaep" with MGF SHA* (for
example 256)

The problem is that even if you use mgf1p in combination with MGF256 no
exception is thrown. What do you think about it?


Greets 
Stefan




--
View this message in context: http://cxf.547215.n5.nabble.com/Setting-MGF-Algorithm-tp5759712p5759869.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Setting MGF Algorithm

Posted by Colm O hEigeartaigh <co...@apache.org>.
Hi Stefan,

I've just merged some code to support it for the next release:

https://issues.apache.org/jira/browse/WSS-550
https://git1-us-west.apache.org/repos/asf?p=cxf.git;a=commit;h=ff826092

Colm.


On Wed, Aug 5, 2015 at 7:20 AM, Stefan Müller <st...@it.nrw.de>
wrote:

> Since wss4j 2.0 it is possible use MGF Algorithms other than mgf1sha1 but I
> can't find a way to set this from cxf via let's say a property. I think it
> is also not possible to set the wss4j property (ENC_MGF_ALGO) in an
> interceptor by myself.
>
> I'm using a DOM based webservice with WS-SecurityPolicy and a custom
> AlgorithmSuite.
>
>
> Maybe someone can help. Thanks in advance.
> Stefan
>
>
>
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Setting-MGF-Algorithm-tp5759712.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>



-- 
Colm O hEigeartaigh

Talend Community Coder
http://coders.talend.com