com.eruces.teagent.TECipherOutputStream
The TECipherOutputStream class is
Inheritance
- Inherits CipherOutputStream
Public Member Functions
| Member | Description |
|---|---|
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
| Parameter | Description |
|---|---|
os | output stream |
c | a fully initialized cipher object. The cipher object can be constructed with Eruces JCE provider. |
ttag | T-tag of the secret key used to construct cipher object |
TECipherOutputStream(OutputStream os, TECipher c)
Constructs a Tricryption cipher encryption stream.
Parameters
| Parameter | Description |
|---|---|
os | output stream |
c | a 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
| Parameter | Description |
|---|---|
b | the input buffer |
void write(byte[] b, int off, int len)
Writes data to cipher output stream.
Parameters
| Parameter | Description |
|---|---|
b | the input buffer |
off | the offset in b where the input starts |
len | the input length |
void write(int b)
Writes the specified byte to output stream.
Parameters
| Parameter | Description |
|---|---|
b | the byte |