ccs.crypt
Class BCCHInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by ccs.crypt.CipherInputStream
              extended by ccs.crypt.AbstractBlockCipherInputStream
                  extended by ccs.crypt.BCCHInputStream
All Implemented Interfaces:
java.io.Closeable

public class BCCHInputStream
extends AbstractBlockCipherInputStream


Field Summary
 
Fields inherited from class ccs.crypt.CipherInputStream
isDelimit, temp8
 
Fields inherited from class java.io.FilterInputStream
in
 
Method Summary
protected  void readHeader(java.io.InputStream is)
          Read in the header, not including any self-delimiting information.
 
Methods inherited from class ccs.crypt.AbstractBlockCipherInputStream
finish, read
 
Methods inherited from class ccs.crypt.CipherInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readHeader

protected void readHeader(java.io.InputStream is)
                   throws java.io.IOException
Description copied from class: AbstractBlockCipherInputStream
Read in the header, not including any self-delimiting information. Typically this is just the IV (if in CBC mode). Unsigned.readFully is your friend. Remember to wash this through your MAC. The AbstractBlockCipher's buffer is available as scratch space.

Specified by:
readHeader in class AbstractBlockCipherInputStream
Parameters:
is - The stream to read from.
Throws:
java.io.IOException