"Pablo J. Royo" wrote:
> 
> 
> I think it would be great if this BIO where included in OpenSSL so people
> asking for compression could use it, but I think that PKCS7 standars says
> nothing about compression.(And after some years I know OpenSSL people team
> enougth to think that if there is no well defined standard they will not
> include nothing.... ;-))

PKCS#7 doesn't say anything but CMS (S/MIME v3) has a draft
compressed-data content type. 

For some experimental code I did write a zlib BIO myself but never got
round to completing it and checking it thoroughly. If this code is OK
and supports things like non blocking I/O then it would be a useful
addition to OpenSSL.

> If OpenSSL 0.9.7 version supports indefinite length encoding this could be
> even more interesting, because I did all this to manage big files without
> having a big amount of data bytes to cipher loaded in memory.
> 

OpenSSL 0.9.7 probably wont support streaming ASN1 only memory based
ASN1. I've completely rewritten the ASN1 code for 0.9.7 and its pretty
stable now and I don't want to push my luck by rewriting it again.

Full streaming I/O is tricky to do. The hard part is keeping sufficient
state information so you can restart the decoder (or encoder) after
partial I/O. If you assume the I/O is blocking then its quite a bit
easier but would still need a rewrite.

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