On Thu, Nov 09, 2006, Ricky Charlet wrote:

> Howdy,
> 
>       In the PKCS7_encrypt function, the intent is to make an envelop
> and ecrypt the data pointed to by the parameter 'in'.  But
> PKCS7_dataInit(), where the encryption is supposed to take place, does
> not operate on the parameter 'in'. And PKCS7_dataFinal is not taking
> care of any encryption. 
> 
> 
> How is this function acutally encrypting data? Can someone straighten me
> out?
> 
> 

It creates a BIO chain containing a encrypting filter BIO with the
appropriate key. So The data is written through the chain in plain text and
the "other end" connected to a memory BIO gets the encrypted content.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to