Re: Strange rsa_lib application

2002-12-13 Thread Nils Larsch
Wade L. Scholine wrote: ... > > The typical error message in case of PKCS#1 error (in your case) would > > be "RSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE". > > I'm not clear on the difference between these. The modulus is n, the > product of the primes p and q that are used for key generation, right? I > wa

RE: Strange rsa_lib application

2002-12-13 Thread Wade L. Scholine
Title: RE: Strange rsa_lib application Nils Larsch wrote: >  { snip } > > I guess you know that a 120 bit modulus is not really secure :-) > I knew that was coming. 120 bits is good enough for this application. > The typical error message in case of PKCS#1 erro

Re: Strange rsa_lib application

2002-12-13 Thread Nils Larsch
Wade L. Scholine wrote: > I have an application where I want to encrypt a small (15 octets) plaintext > to a ciphertext of the same size. I was trying to do this with a 120-bit > modulus and calling RSA_private_encrypt() with RSA_NO_PADDING, but some I guess you know that a 120 bit modulus is not