org.logi.crypto.io
Class CipherStream

java.lang.Object
  extended byorg.logi.crypto.Crypto
      extended byorg.logi.crypto.io.CipherStream
Direct Known Subclasses:
CipherStreamClient, CipherStreamServer

public class CipherStream
extends Crypto

Parent of CipherStreamClient and CipherStreamServer.

See Also:
CipherStreamServer, CipherStreamClient

Field Summary
protected  DecryptStream cIn
           
protected  EncryptStream cOut
           
protected  DecryptMode decrypt
           
protected  EncryptMode encrypt
           
protected  java.io.InputStream in
           
protected  java.io.OutputStream out
           
 
Fields inherited from class org.logi.crypto.Crypto
BIT, cdsPath, EMPTY_ARRAY, FOUR, keySource, NIBBLE, ONE, primeCertainty, random, TWO, ZERO
 
Constructor Summary
CipherStream()
           
 
Method Summary
 CipherKey getDecryptKey()
          Get the key used for decryption.
 CipherKey getEncryptKey()
          Get the key used for encryption.
 DecryptStream getInputStream()
          Get the encrypted input-stream.
 EncryptStream getOutputStream()
          Get the encrypted output-stream.
 
Methods inherited from class org.logi.crypto.Crypto
binString, binString, equal, equalRelaxed, equalSub, fromHexNibble, fromHexString, fromString, fromString, hexString, hexString, hexString, hexString, hexString, initRandom, initRandom, makeClass, makeInt, makeLong, makeSessionKey, pastSpace, pickBits, pickBits, readBlock, readInt, writeBytes, writeBytes, writeInt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected java.io.OutputStream out

in

protected java.io.InputStream in

cOut

protected EncryptStream cOut

cIn

protected DecryptStream cIn

encrypt

protected EncryptMode encrypt

decrypt

protected DecryptMode decrypt
Constructor Detail

CipherStream

public CipherStream()
Method Detail

getInputStream

public DecryptStream getInputStream()
Get the encrypted input-stream.


getOutputStream

public EncryptStream getOutputStream()
Get the encrypted output-stream.


getEncryptKey

public CipherKey getEncryptKey()
Get the key used for encryption.


getDecryptKey

public CipherKey getDecryptKey()
Get the key used for decryption.