[botan-devel] Reusing a pipe that failed
elmismocorreo-botan at yahoo.com.ar
Fri May 11 16:37:49 EDT 2012
I'm using a cipher to decode a BASE64 encoded message with AES 128bit CBC mode and padding PKCS7.
My problem is when I try to decode invalid data (e.g. a message too short or not correctly encoded in BASE64). In this case, calling "process_msg" in the pipe throws an exception (in my case: "Buffered_Operation::final - not enough input") and any subsequent call to the pipe throws "Pipe::start_msg: Message was already started".
In the list archives there is a similar question  in which the conclusion was that, as workaround, the pipe should be deleted and a new one used.
I would like to know if there is a way to be able to use the pipe again (and don't need to delete it and create a new one).
Thank you in advance for any comment/help
More information about the botan-devel