Hi all, http://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-26#appendix-A.2 specifies exactly these parameters.
+-------+------------------------+--------------------+-------------+ | JWE | XML ENC | JCA | OID | +-------+------------------------+--------------------+-------------+ | RSA1_ | http://www.w3.org/2001 | RSA/ECB/PKCS1Paddi | 1.2.840.113 | | 5 | /04/xmlenc#rsa-1_5 | ng | 549.1.1.1 | | RSA-O | http://www.w3.org/2001 | RSA/ECB/OAEPWithSH | 1.2.840.113 | | AEP | /04/xmlenc#rsa-oaep-mg | A-1AndMGF1Padding | 549.1.1.7 | | | f1p | | | | RSA-O | http://www.w3.org/2009 | RSA/ECB/OAEPWithSH | 1.2.840.113 | | AEP-2 | /xmlenc11#rsa-oaep | A-256AndMGF1Paddin | 549.1.1.7 | | 56 | | g | | Cheers Axel The code here https://code.google.com/p/jsoncrypto/source/browse/trunk/src/org/jsoncrypto/crypto/CryptoUtils.java#410 is the code that Chuck and I used since the InformationCard days and that worked to verify the examples from the beginning of JOSE. The parameters are the Bouncycastel default parameters (SHA-1) From: jose [mailto:[email protected]] On Behalf Of Brian Campbell Sent: Tuesday, May 06, 2014 4:00 PM To: Antonio Sanso Cc: [email protected] Subject: Re: [jose] RSA-OAEP-256 Example But you probable did do something very similar to what I did in jose4j - i.e. just getting a cipher instance with "RSA/ECB/OAEPWithSHA-256AndMGF1Padding"? I think that's the right thing to do (and JWA even implies it) but a check from a different language/platform would help verify that assumption. I don't know if maybe more specifics need to be provided to the cipher via OAEPParameterSpec or something - the JCA APIs can be a bit mysterious at times. On Tue, May 6, 2014 at 6:32 AM, Antonio Sanso <[email protected]<mailto:[email protected]>> wrote: hi Brian, On May 6, 2014, at 3:29 PM, Brian Campbell <[email protected]<mailto:[email protected]>> wrote: From the venerable film Animal House, of course, https://www.youtube.com/watch?v=vVXEQ8hjyGI Thanks for checking that Antonio. Hopefully we could get a non Java based implementing to verify it too. just for completeness I did *not* use jose4j to verify it… (just to be safe) regards antonio On Tue, May 6, 2014 at 6:25 AM, Antonio Sanso <[email protected]<mailto:[email protected]>> wrote: Well, as of this moment, they're on DOUBLE SECRET PROBATION! On May 6, 2014, at 11:34 AM, Antonio Sanso <[email protected]<mailto:[email protected]>> wrote: Hi Brian, I will give a try and let you know regards antonio On May 6, 2014, at 5:40 AM, Brian Campbell <[email protected]<mailto:[email protected]>> wrote: The latest revision of JWA added a new 'RSA-OAEP-256' JWE alg for key encryption but, AFAIK, there are no examples using it. I recently added support for it to https://bitbucket.org/b_c/jose4j and am looking to get some kind of confirmation that I've done it correctly (other than self interop). With that in mind, here is a JWE using RSA-OAEP-256 which I've produced and I'm hopeful that someone on this WG list will be able to decrypt. The RSA key that was used (in JWK format with both public and private parts) is below the JWE. eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMTI4Q0JDLUhTMjU2In0.Oyeg4hbq2HjtHOcXduK9UhhIXervPzOTLAqKphCyeK55cFgKtF32DhD26sfnG6h9az3Ogrn4QwYJeZkjJK36teyjl9oKIW_9ItP8cYhOriDOOZFho53Bsttqj8pc0UPrMJ448yQsgkgyqmfWZQs3u_qCaSLXpegE3o-YJ520-Xu_ElS5pNy_vfSME1CeP5unPQPf06Xc6iMVWx9-K_7lxC7acYI_fSSUwuFw-vxrVJMRKf0NDikdmcoI5WW7h5gLXSu4EZvW8xHxA_QoEFnSeYgg8NQNOGLf_PaBddAdn8ck_mhtJdgfc0W251nTviMAwPAjsG0FMnPox7GdtzTdmA.3DJSCmGDd9WI-DI3sBRm8Q.ncFI9vUEdKkuhPR0h3nOJP5dBgKrcS5f9Q7Z58AZTTdTV53FlzJIHwdme-1xipwDifTOL8yi7beuEEiXg_CSzw.UmNlvrfeCGnhWT9qyuUSSA {"kty":"RSA","n":"2cQJH1f6yF9DcGa8Cmbnhn4LHLs5L6kNb2rxkrNFZArJLRaKvaC3tMCKZ8ZgIpO9bVMPx5UMjJoaf7p9O5BSApVqA2J10fUbdSIomCcDwvGo0eyhty0DILLWTMXzGEVM3BXzuJQoeDku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dq":"MJFbuGtWZvQEdRJicS3uFSY25LxxRc4eJJ8xpIC44rT5Ew4Otzf0zrlzzM92Cv1HvhCcOiNK8nRCwkbTnJEIh-EuU70IdttYSfilqSruk2x0r8Msk1qrDtbyBF60CToRKC2ycDKgolTyuaDnX4yU7lyTvdyD-L0YQwYpmmFy_k0","qi":"vy7XCwZ3jyMGik81TIZDAOQKC8FVUc0TG5KVYfti4tgwzUqFwtuB8Oc1ctCKRbE7uZUPwZh4OsCTLqIvqBQda_kaxOxo5EF7iXj6yHmZ2s8P_Z_u3JLuh-oAT_6kmbLx6CAO0DbtKtxp24Ivc1hDfqSwWORgN1AOrSRCmE3nwxg"} _______________________________________________ jose mailing list [email protected]<mailto:[email protected]> https://www.ietf.org/mailman/listinfo/jose -- [cid:~WRD000.jpg]<https://www.pingidentity.com/> Brian Campbell Portfolio Architect @ [email protected]<mailto:[email protected]> [cid:~WRD000.jpg] +1 720.317.2061<tel:%2B1%20720.317.2061> Connect with us… [cid:~WRD000.jpg]<https://twitter.com/pingidentity>[cid:~WRD000.jpg]<https://www.youtube.com/user/PingIdentityTV>[cid:~WRD000.jpg]<https://www.linkedin.com/company/21870>[cid:~WRD000.jpg]<https://www.facebook.com/pingidentitypage>[cid:~WRD000.jpg]<https://plus.google.com/u/0/114266977739397708540>[cid:~WRD000.jpg]<http://www.slideshare.net/PingIdentity>[cid:~WRD000.jpg]<http://flip.it/vjBF7>[cid:~WRD000.jpg]<https://www.pingidentity.com/blogs/> [cid:~WRD000.jpg]<https://www.cloudidentitysummit.com/> _______________________________________________ jose mailing list [email protected]<mailto:[email protected]> https://www.ietf.org/mailman/listinfo/jose -- [cid:~WRD000.jpg]<https://www.pingidentity.com/> Brian Campbell Portfolio Architect @ [email protected]<mailto:[email protected]> [cid:~WRD000.jpg] +1 720.317.2061 Connect with us… [cid:~WRD000.jpg]<https://twitter.com/pingidentity>[cid:~WRD000.jpg]<https://www.youtube.com/user/PingIdentityTV>[cid:~WRD000.jpg]<https://www.linkedin.com/company/21870>[cid:~WRD000.jpg]<https://www.facebook.com/pingidentitypage>[cid:~WRD000.jpg]<https://plus.google.com/u/0/114266977739397708540>[cid:~WRD000.jpg]<http://www.slideshare.net/PingIdentity>[cid:~WRD000.jpg]<http://flip.it/vjBF7>[cid:~WRD000.jpg]<https://www.pingidentity.com/blogs/> [cid:~WRD000.jpg]<https://www.cloudidentitysummit.com/>
_______________________________________________ jose mailing list [email protected] https://www.ietf.org/mailman/listinfo/jose
