Pablo J. Royo wrote:
>
> Hi all:
>
> I�ve seen that asn1 routines in crypto dir of the distribution handle ASN1
> indefinite lenght format, but all the objects used by library are loaded in
> a memory buffer and then changed in to ASN1 format.(and vice versa)
> I�d like to sign and envelope big files that can�t be memory mapped or
> loaded as buffers.I�d like also to use ValidCert ASN1 parser for this.
Valicert ASN1 parser hasn't been updated for OpenSSL and it doesn't
always produce efficient or indeed valid ASN1 code.
> There is some example in the library?
Currently OpenSSL can't handle indefinite length encoding/decoding "on
the fly". Changing this would probably need major surgery to the ASN1
routines because many of them assume the whole structures can be held in
memory.
It is easier to handle just signing or verify if you use the
multipart/signed MIME type but you would have to do your own MIME
parsing and some BIO shuffling.
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]