Hi Michael,

The code in PHP for SMIME is pretty much taken directly from the equivalent
smime.c file (or is it pkcs7.c?) in the openssl distribution.
If you want to do something like this, take a look in there and send your
patch to the list (and CC me too; I'm the openssl extension maintainer for
PHP).

I think it *is* just a case is cipher = EVP_3DES() (or something similar),
but I don't have the time to dig into the openssl code right now.

If you're unsure how to make PHP use the alternative cipher setting,
just hardcode your patch and I will add an optional argument to the
function (but would appreciate it if you could include that in your
patch, as I have not much time for a couple of months).

--Wez.

On 04/06/02, "michael sullivan" <[EMAIL PROTECTED]> wrote:
> I noticed in the documentation on openssl_pkcs7_encrypt that it only uses
> RC2-40. I'd like to modify it to use 3DES and was wondering if anyone has
> already done that, and if not, where should I modify the code to enable that
> encoding by default?
> 
> I noticed in the php 4.2.1/ext/openssl/openssl.c source that
>     cipher = EVP_rc2_40_cbc()
> and that PKCS7_encrypt() uses the cipher value. Is it as simple as changing
> the cipher value to equal the appropriate value like 3des()? If so, what
> should cipher = ?
> 
> I'm not a hardcore programmer, but would like to know how to scope the work
> to someone else than can do the work if I can't.
> 
> Thanks
> 
> 
> 
> -- 
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to