org.logi.crypto.io
Class CipherStream
java.lang.Object
org.logi.crypto.Crypto
org.logi.crypto.io.CipherStream
- Direct Known Subclasses:
- CipherStreamClient, CipherStreamServer
- public class CipherStream
- extends Crypto
Parent of CipherStreamClient and CipherStreamServer.
- See Also:
CipherStreamServer
,
CipherStreamClient
Fields inherited from class org.logi.crypto.Crypto |
BIT, cdsPath, EMPTY_ARRAY, FOUR, keySource, NIBBLE, ONE, primeCertainty, random, TWO, ZERO |
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 |
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
CipherStream
public CipherStream()
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.