> On 2001-05-04 18:22:03, "Sascha Kettler" <[EMAIL PROTECTED]> wrote:
> > You won't need to pass the algorithm by an arg, as the key already
> contains
> > the algorithm identification (pkey->type). I haven't used any DSA
> encryption
> > yet, but maybe you can just add the code to the switch statements.
> 
> Yes, I've just found that out.  I don't suppose that you know off hand a
> future-proof method of calling a cipher so we don't have to "case" each
> possibility? (I'm not sure such a method exists, but you never know...)

You could use EVP_PKEY_encrypt (openssl-0.9.6a/crypto/evp/p_enc.c), but that
only supports RSA and only PKCS1_PADDING. I'm not even sure it can encrypt
using a private key...

I'm not even sure you can do all this with DSA, I'll read the appropriate
sections in AC and HAC to be sure.

Sascha


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to