Bo Sehlberg wrote:
> 
> Hi Andy,
> 
> 
> I also tried to dig down in the decryption code but gave up, )its really
> magic). So if you have any idea where to look I would be very greatful.
> 

I've added some new functionality to memory BIOs in the latest snapshot
and it seems to fix the speed problem. Let me know of any problems.

Unfortunately the way the original SSLeay (and now OpenSSL) ASN1 works
is to be "memory based" that is it assumes the ASN1 structure is in
memory and can't be modified to an I/O based approach without an almost
complete rewrite. This means that when you first read in the file it
passes through a general purpose ASN1 decoder which sucks the lot into
one memory block. It then goes through an ASN1 parser which copies it
into another memory block. You did well not to use the PEM format stuff
because that also reads the base64 encoded version into memory as well
:-(

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to