On Fri, Jan 07, 2005, Perry L. Jones wrote: > I have some code that is useing PKCS7_verify and SMIME_write_PKCS7 and > on large files these functions are noticable slow. I have looked > through the openssl code and see that these function are only reading > and writing from arrays that are only 4096 bytes in size. I need to > speed up these function and would like to know if I can just incress > this buffer size of if theres is some other trick to making them faster? > > I am currently using openssl version 0.9.7d >
I'm assuming that you are using the signed data content type since you mention PKCS7_verify(). Is this the clear signed content (multipart/signed) or opaque? One of the problems is that the ASN1 code has to keep all its data in memory, changing that isn't easy and so far there hasn't been much interest. There is some experimental code in OpenSL 0.9.8-dev which will handle single pass processing of the clear signed type which may help: because the content isn't part of the ASN1 structure it can do that. 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 User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]