All Packages Class Hierarchy This Package Previous Next Index
Class cryptix.security.StreamCipher
java.lang.Object
|
+----cryptix.security.StreamCipher
- public abstract class StreamCipher
- extends Object
Note: StreamCipher is deprecated.
This abstract class is the basis for a stream cipher of any form.
StreamCipher objects support only the Cryptix v2.2 API.
Note: compatibility with Cryptix 2.2 applies only to clients of this
class. Subclasses must be rewritten as JCE algorithms.
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.2 $
- Author:
- Systemics Ltd, David Hopwood
- See Also:
- Cipher
-
StreamCipher()
-
-
decrypt(byte[])
- This function decrypts a block of data.
-
decrypt(byte[], byte[])
- This function decrypts a block of data.
-
decrypt(byte[], int, byte[], int, int)
- This function decrypts a block of data.
-
encrypt(byte[])
- This function encrypts a block of data.
-
encrypt(byte[], byte[])
- This function encrypts a block of data.
-
encrypt(byte[], int, byte[], int, int)
- This function encrypts a block of data.
-
keyLength()
- This function returns the length of the key for this cipher.
StreamCipher
public StreamCipher()
encrypt
public final void encrypt(byte text[])
- This function encrypts a block of data.
The contents of the array will be changed.
- Parameters:
- text - the plaintext to be encrypted.
decrypt
public final void decrypt(byte text[])
- This function decrypts a block of data.
The contents of the array will be changed.
- Parameters:
- text - the ciphertext to be decrypted.
encrypt
public final void encrypt(byte in[],
byte out[])
- This function encrypts a block of data.
The contents of the array in remain unchanged,
and the result is stored in the array out.
However, array in and array out can be the same.
- Parameters:
- in - the plaintext to be encrypted.
- out - where the ciphertext will be stored.
decrypt
public final void decrypt(byte in[],
byte out[])
- This function decrypts a block of data.
The contents of the array in remain unchanged,
and the result is stored in the array out.
However, array in and array out can be the same.
- Parameters:
- in - the ciphertext to be decrypted.
- out - where the plaintext will be stored.
encrypt
public abstract void encrypt(byte in[],
int in_offset,
byte out[],
int out_offset,
int length)
- This function encrypts a block of data.
The contents of the array in remain unchanged,
and the result is stored in the array out.
However, array in and array out can be the same.
- Parameters:
- in - the plaintext to be encrypted.
- in_offset - the start of data within the in buffer.
- out - where the ciphertext will be stored.
- off_offset - the start of data within the out buffer.
- length - the length to encrypt.
decrypt
public abstract void decrypt(byte in[],
int in_offset,
byte out[],
int out_offset,
int length)
- This function decrypts a block of data.
The contents of the array in remain unchanged,
and the result is stored in the array out.
However, array in and array out can be the same.
- Parameters:
- in - the ciphertext to be decrypted.
- in_offset - the start of data within the in buffer.
- out - where the plaintext will be stored.
- off_offset - the start of data within the out buffer.
- length - the length to decrypt.
keyLength
public abstract int keyLength()
- This function returns the length of the key for this cipher.
- Returns:
- the length (in bytes) of the key used with this cipher
All Packages Class Hierarchy This Package Previous Next Index