RE: max length to encrypt

2010-06-02 Thread David Schwartz
Chuck Pareto wrote: > I'm not sure what you mean by "shouldn't be using public-key > encryption", why? Because you don't understand its properties, so there's no way you can know whether or not it meets your security requirements. > It seems like .Net sets up a nice class that is easily > impl

Re: max length to encrypt

2010-06-02 Thread Chuck Pareto
Hi Phillip, I'm not sure what you mean by "shouldn't be using public-key encryption", why? It seems like .Net sets up a nice class that is easily implemented, all I need is the key and the exponent and I can encrypt and decrypt when needed. I don't think I really have a choice about what to use, I

Re: max length to encrypt

2010-06-02 Thread Phillip Hellewell
On Thu, May 27, 2010 at 2:20 PM, Chuck Pareto wrote: > Hi, > I'm still unsure as to the max length string I can use to encrypt. I'm using > the rsacrypto class in .net to encrypt. > I know I can't pass in a string that's 256 bytes long or greater because > there us an exception that gets thrown. B

RE: max length to encrypt: direct RSA

2010-05-28 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Chuck Pareto > Sent: Thursday, 27 May, 2010 16:20 > I'm still unsure as to the max length string I can use to > encrypt. I'm > using the rsacrypto class in .net to encrypt. > I know I can't pass in a string that's 256 bytes long or greater

Re: max length to encrypt

2010-05-27 Thread Chuck Pareto
Hi, I'm still unsure as to the max length string I can use to encrypt. I'm using the rsacrypto class in .net to encrypt. I know I can't pass in a string that's 256 bytes long or greater because there us an exception that gets thrown. But as I work my way back in length I still get exceptions

RE: max length to encrypt

2010-05-26 Thread David Schwartz
Chuck Pareto wrote: > if my public key is 256 bytes long, what is the max length > of the string I can use to encrypt? Is it 256? If the output is exactly 256 bytes, there are (in theory) 2^(256*8) possible outputs. That means there can be at most 2^(256*8) possible inputs. There are more than