Does CRYPT_ENVINFO_COMPRESSION also encrypt?

View: New views
2 Messages — Rating Filter:   Alert me  

Does CRYPT_ENVINFO_COMPRESSION also encrypt?

by Timo Kunze :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

to compress and encrypt data, I used to envelopes so far. The first one
compresses and the second one encrypts. But on page 55 of the manual, it
sounds a bit like I'm actually encrypting the data twice. Can a single
envelope be used to compress AND encrypt in a single step?

Oh, and which compression algorithm does cryptlib use?

Thanks in advance
Timo
--
www.TimoSoft-Software.de - Unicode controls for VB6
"Those who sacrifice freedom for safety deserve neither."
"Demokratie ist per Definition unsicher. Ihr Schutz entsteht aus der
Überzeugung, dass die demokratischen Kräfte überwiegen und sich – auf
demokratischem Wege – durchsetzen."

_______________________________________________
Cryptlib mailing list
Cryptlib@... via Mail: cryptlib-request@...
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.

Re: Does CRYPT_ENVINFO_COMPRESSION also encrypt?

by Peter Gutmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Timo Kunze <TKunze71216@...> writes:

>to compress and encrypt data, I used to envelopes so far. The first one
>compresses and the second one encrypts. But on page 55 of the manual, it
>sounds a bit like I'm actually encrypting the data twice. Can a single
>envelope be used to compress AND encrypt in a single step?

No, each layer of CMS processing needs its own envelope.

>Oh, and which compression algorithm does cryptlib use?

zlib, see RFC 3274.

Peter.

_______________________________________________
Cryptlib mailing list
Cryptlib@... via Mail: cryptlib-request@...
Archive: ftp://ftp.franken.de/pub/crypt/cryptlib/archives/
http://news.gmane.org/gmane.comp.encryption.cryptlib
Posts from non-subscribed addresses are blocked to prevent spam, please
subscribe in order to post messages.