[Botan-devel] Fwd: How to reset a pipe?

William Foster williamkf at gmail.com
Tue Feb 1 23:07:10 EST 2011


My first mail does not seem to have gotten through...


---------- Forwarded message ----------
From: William K. Foster <wkf at alum.mit.edu>
Date: Tue, Feb 1, 2011 at 5:33 PM
Subject: How to reset a pipe?
To: Botan development list <botan-devel at randombit.net>


Hello,

I have a Pipe created like this:

  new Pipe(get_cipher(_cipherSpec, _masterKey, _ivTCP, ENCRYPTION))

and another at the receiving end like this:

  new Pipe(get_cipher(_cipherSpec, _masterKey, _ivTCP, DECRYPTION))

And these are using a block cipher mode such as "Serpent/CTR-BE".

The question I have, is after using these two pipes for a bit, how can I
reset them to their initial state for the purposes of the CTR-BE block
cipher mode?

The reason I need to do this is that the encrytor can get out of sync with
the decrypter due to a block not getting through, so I would like a way to
reset both of them to ensure they are in sync again for the cipher mode.

Thanks.

-William
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20110201/a65bf36d/attachment.html>


More information about the botan-devel mailing list