Hides block-related boundaries in buffering. More...
Hides block-related boundaries in buffering.
Java's javax.crypto.CipherInputStream exposes the buffering done to accommodate a block Cipher, and hence reads/skip/available only return the data available in the current Cipher block, rather than the perhaps larger amount of data expected from the underlying stream. This class wraps javax.crypto.CipherInputStream to provide more natural semantics, and avoids having repeated code to handle incomplete reads/etc.