Re: openssl module for php

From: Date: Fri, 04 May 2001 19:25:09 +0000
Subject: Re: openssl module for php
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-53937@lists.php.net to get a copy of this message
> On 2001-05-04 18:22:03, "Sascha Kettler" <kettler@gmx.net> 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

« previous php.dev (#53937) next »