Closed GoogleCodeExporter closed 9 years ago
This is expected behavior. RSA-OAEP payloads have a maximum size that depends
on the
key length. You'd typically use this to encrypt a symmetric session key.
So, I changed this to a feature request to add support for session keys that
would
allow you to encrypt arbitrary length messages with a public key.
Original comment by stevew...@gmail.com
on 29 Sep 2008 at 11:12
Any update on this one? I just got bitten by the max payload size - go figure,
in my
application I'm over by a single byte!? argh :P
Similar to above, I've generated an rsa keypair (public/private) with a key
length of
2048 and using the public key to encrypt a string which will ultimately be
decrypted
by the private string. Below is exception msg:
110 [http-8888-Processor4] INFO org.keyczar.Encrypter - Encrypting 215 bytes.
org.keyczar.exceptions.KeyczarException:
javax.crypto.IllegalBlockSizeException: Data
must not be longer than 214 bytes
Thanks Todd
Original comment by 3le...@gmail.com
on 28 Oct 2008 at 10:06
Hi. I haven't had a chance to work on adding session key support. I'll try to
get to
it as soon as I can.
Original comment by stevew...@gmail.com
on 29 Oct 2008 at 12:40
Original comment by stevew...@gmail.com
on 6 Nov 2008 at 6:54
Adding support for session keys would really be nice. After all, the actual
payload
you typically want to encrypt is almost always more than 214 lousy bytes...
Original comment by skjervold@gmail.com
on 23 Feb 2009 at 4:09
Adding support for session keys when using RSA would be very nice.
I was thinking of hacking together something for the python implementation.
Is there a spec for how the session keys would work?
Original comment by paul.que...@gmail.com
on 14 Aug 2009 at 10:40
I checked in some experimental code for hybrid encryption. Documentation
updates are
forthcoming.
Original comment by stevew...@gmail.com
on 18 Dec 2009 at 2:53
Original comment by stevew...@gmail.com
on 21 Oct 2010 at 6:35
Original issue reported on code.google.com by
lossu...@gmail.com
on 29 Sep 2008 at 6:00