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

Constructor Index

 o StreamCipher(int)
Constructor.

Method Index

 o decrypt(byte)
Decrypt a byte.
 o decrypt(byte[], byte[])
Decrypt an array of bytes.
 o decrypt(byte[], int, byte[], int, int)
Decrypt some bytes.
 o encrypt(byte)
Encrypt a byte.
 o encrypt(byte[], byte[])
Encrypt an array of bytes.
 o encrypt(byte[], int, byte[], int, int)
Encrypt some bytes.

Constructors

 o StreamCipher
 public StreamCipher(int keySize)
Constructor.

Methods

 o encrypt
 public abstract byte encrypt(byte clearText)
Encrypt a byte.

 o decrypt
 public abstract byte decrypt(byte cipherText)
Decrypt a byte.

 o encrypt
 public void encrypt(byte clearText[],
                     byte cipherText[])
Encrypt an array of bytes.

 o decrypt
 public void decrypt(byte cipherText[],
                     byte clearText[])
Decrypt an array of bytes.

 o 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.

 o 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