All Packages Class Hierarchy This Package Previous Next Index
Class Acme.Crypto.StreamCipher
java.lang.Object
|
+----Acme.Crypto.CryptoUtils
|
+----Acme.Crypto.Cipher
|
+----Acme.Crypto.StreamCipher
- public abstract class StreamCipher
- extends Cipher
A stream encryption template.
Fetch the software.
Fetch the entire Acme package.
- See Also:
- Cipher, BlockCipher, EncryptedOutputStream, EncryptedInputStream, Rc4Cipher
-
StreamCipher(int)
- Constructor.
-
decrypt(byte)
- Decrypt a byte.
-
decrypt(byte[], byte[])
- Decrypt an array of bytes.
-
decrypt(byte[], int, byte[], int, int)
- Decrypt some bytes.
-
encrypt(byte)
- Encrypt a byte.
-
encrypt(byte[], byte[])
- Encrypt an array of bytes.
-
encrypt(byte[], int, byte[], int, int)
- Encrypt some bytes.
StreamCipher
public StreamCipher(int keySize)
- Constructor.
encrypt
public abstract byte encrypt(byte clearText)
- Encrypt a byte.
decrypt
public abstract byte decrypt(byte cipherText)
- Decrypt a byte.
encrypt
public void encrypt(byte clearText[],
byte cipherText[])
- Encrypt an array of bytes.
decrypt
public void decrypt(byte cipherText[],
byte clearText[])
- Decrypt an array of bytes.
encrypt
public void encrypt(byte clearText[],
int clearOff,
byte cipherText[],
int cipherOff,
int len)
- Encrypt some bytes.
The default implementation just calls encrypt(byte) repeatedly.
This can be overridden for speed.
decrypt
public void decrypt(byte cipherText[],
int cipherOff,
byte clearText[],
int clearOff,
int len)
- Decrypt some bytes.
The default implementation just calls decrypt(byte) repeatedly.
This can be overridden for speed.
All Packages Class Hierarchy This Package Previous Next Index
ACME Java ACME Labs