mace-opensaml-users - Re: [OpenSAML] [OpenSAML java] encrypted assertion
Subject: OpenSAML user discussion
List archive
- From: Brent Putman <>
- To:
- Subject: Re: [OpenSAML] [OpenSAML java] encrypted assertion
- Date: Mon, 18 Apr 2011 10:33:18 -0400
Well, you can't use RSA to encrypt the actual data, you have to use
a symmetric block algorithm for the data encryption, and then
encrypt the data encryption key as an EncryptedKey and send it along
with the EncryptedAssertion. The examples in the wiki illustrate
this. The technical reason is that that RSA can only encrypt a block that is slightly smaller than it's modulus size, not nearly enough for a SAML assertion. And there are no cipher modes defined for RSA for multi-block encryption (or at least if there are, XML Encryption doesn't support them). For more info, you can google. Using an ephemeral symmetric data encryption key is is the standard approach to using RSA encryption for pretty much anything out there, not just SAML. On 4/18/11 6:43 AM, wrote:
|
- [OpenSAML] [OpenSAML java] encrypted assertion, jixian.li, 04/18/2011
- Re: [OpenSAML] [OpenSAML java] encrypted assertion, Brent Putman, 04/18/2011
- <Possible follow-up(s)>
- Re: [OpenSAML] [OpenSAML java] encrypted assertion, jixian.li, 04/18/2011
- Re: [OpenSAML] [OpenSAML java] encrypted assertion, Brent Putman, 04/18/2011
- Re: [OpenSAML] [OpenSAML java] encrypted assertion, jixian.li, 04/20/2011
- Re: [OpenSAML] [OpenSAML java] encrypted assertion, Brent Putman, 04/20/2011
- Re: [OpenSAML] [OpenSAML java] encrypted assertion, jixian.li, 04/21/2011
- Re: [OpenSAML] [OpenSAML java] encrypted assertion, Brent Putman, 04/21/2011
Archive powered by MHonArc 2.6.16.