Re: openssl module for php
| From: | Sascha Kettler | Date: | Fri, 04 May 2001 17:22:03 +0000 |
| Subject: | Re: openssl module for php | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-53890@lists.php.net to get a copy of this message | ||
> On 2001-05-04 17:59:03, "Stig Venaas" <venaas@php.net> wrote:
> > This sounds good, please have a look at bug report 10665 by
> > kettler@gmx.net, he has implemented RSA encryption, and wez@php.net
> > followed up on that. It would be good if you and Sascha Kettler could
> > agree on how the API should be, Wez and maybe I also might have some
> > thoughts. I'm not sure, but rather than having separate functions for
> > each algorithm, it might be better to have encrypt and decrypt
> functions
> > that take algorithm as a parameter. I'm Cc'ing Sascha and Wez.
>
> I'll probably tweak Sascha's patch to take the cipher as an arg (and add
> similar support to the S/MIME functions while I'm at it).
>
> Let me know if any of you have any comments - I'm going to look at the
> patch now and have a play with it.
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.
Sascha