Skip to main content

com.eruces.teagent.TECipherOutputStream

The TECipherOutputStream class is

Inheritance

  • Inherits CipherOutputStream

Public Member Functions

MemberDescription
TECipherOutputStream(OutputStream os, Cipher c, byte[] ttag)Constructs a Tricryption encryption output stream.
TECipherOutputStream(OutputStream os, TECipher c)Constructs a Tricryption cipher encryption stream.
void close()Closes output stream.
void flush()Flushes cipher output stream Note: Do not flush until the the end of output stream.
void write(byte[] b)Writes b.length bytes to cipher output stream.
void write(byte[] b, int off, int len)Writes data to cipher output stream.
void write(int b)Writes the specified byte to output stream.

Member Function Documentation

TECipherOutputStream(OutputStream os, Cipher c, byte[] ttag)

Constructs a Tricryption encryption output stream.

Parameters

ParameterDescription
osoutput stream
ca fully initialized cipher object. The cipher object can be constructed with Eruces JCE provider.
ttagT-tag of the secret key used to construct cipher object

TECipherOutputStream(OutputStream os, TECipher c)

Constructs a Tricryption cipher encryption stream.

Parameters

ParameterDescription
osoutput stream
ca Tricryption cipher object

void close()

Closes output stream.

void flush()

Flushes cipher output stream Note: Do not flush until the the end of output stream.

void write(byte[] b)

Writes b.length bytes to cipher output stream.

Parameters

ParameterDescription
bthe input buffer

void write(byte[] b, int off, int len)

Writes data to cipher output stream.

Parameters

ParameterDescription
bthe input buffer
offthe offset in b where the input starts
lenthe input length

void write(int b)

Writes the specified byte to output stream.

Parameters

ParameterDescription
bthe byte