[DGD] zlib, mccp and dgd
Felix A. Croes
felix at dworkin.nl
Wed Sep 19 20:10:57 CEST 2007
Noah Gibbs <noah_gibbs at yahoo.com> wrote:
> Or use the same interface. Compression isn't exactly the same as encryption,
> but it operates remarkably similarly.
They work similarly, but the internal state that a compression engine
has to maintain is much larger. For example, the internal state
for the triple-DES encryption used in the LPC SSH implementation is
just 8 bytes which allow you to chain one encrypted block to another.
For something like zlib, you would need a fairly large hash table.
This hash table could be stored in a string, but then a kfun
implementation of zlib compression would have to do sanity checking
on that string, to ensure that it was not altered by LPC code in between
compression rounds.
Regards,
Dworkin
More information about the DGD
mailing list