Oh, I realise what you meant now. I'm using the encryption for DH, which I guess counts as key exchange :) The DH public parameters are 512 bytes, and RSA_size gives 256 for a keylength of 2048. I dont really want to go too much above this (speed - is this reasonable?).

When you say that the ciphers operate on a digest for key exchange, how would you do that? Might make things easier.
Thanks,
Patrick


ET Tan wrote:
Then you should choose one of the symmetric ciphers (aes, des, ...).
Asymmetric ciphers like rsa/dsa are for key exchange/signing only, and for
these purposes, these ciphers operate on a digest (which is little) rather
than the data itself.

----- Original Message ----- From: "Patrick Coleman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 04, 2004 11:17 AM
Subject: Re: RSA_public_encrypt max message length




Bulk encryption, I think. I just want to encrypt/decrypt > RSA_size(key)
 bytes in one operation.

Thanks,
Patrick

ET Tan wrote:

What were you trying to do?

Key exchange or bulk encryption?


----- Original Message ----- From: "Patrick Coleman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 04, 2004 10:53 AM
Subject: RSA_public_encrypt max message length





Hi,
When encrypting strings with RSA_public_encrypt, I cant seem to encrypt
more than RSA_size(key) bytes. Is there any way to encrypt more than
this number of bytes in a single call to RSA_public_encrypt (or a
similar function)?

Thanks,
Patrick
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]


______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]



______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]



______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to