org.ccnx.ccn.impl.security.crypto.UnbufferedCipherInputStream Class Reference

Hides block-related boundaries in buffering. More...

Inherits javax::crypto::CipherInputStream.

List of all members.

Public Member Functions

 UnbufferedCipherInputStream (InputStream in, Cipher c)
int read (byte[] data, int off, int len) throws IOException
int available () throws IOException
long skip (long bytes) throws IOException

Protected Attributes

int blockSize


Detailed Description

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.


The documentation for this class was generated from the following file:

Generated on Thu Feb 16 00:44:57 2012 for Content-Centric Networking in Java by  doxygen 1.5.6