iaik.security.cipher
Class RC4

java.lang.Object
  |
  +--javax.crypto.CipherSpi
        |
        +--iaik.security.cipher.BufferedCipher
              |
              +--iaik.security.cipher.RC4

public class RC4
extends iaik.security.cipher.BufferedCipher

Extends the BufferedCipher class for adding a buffering mechanism to the underlying RC4 cipher.

The RC4 method is a stream cipher using a key of variable size. RC4 operates in Output Feedback Mode (OFB), where - in contrast to CFB - the keystream is created independently from the plaintext.

This class only creates a BufferedCipher object for the RC4 cipher. Applications shall use

Cipher.getInstance("RC4", "IAIK");
 
for creating a RC4 cipher object.

See Also:
Cipher

Constructor Summary
RC4()
          Creates a RC4 object by calling the BufferedCipher constructor for the RC4 cipher.
 
Methods inherited from class iaik.security.cipher.BufferedCipher
engineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetOutputSize, engineGetParameters, engineInit, engineInit, engineInit, engineSetMode, engineSetPadding, engineUpdate, engineUpdate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RC4

public RC4()
Creates a RC4 object by calling the BufferedCipher constructor for the RC4 cipher. This constructor is only internally used for initializing a RC4 Cipher. Applications should not call this constructor to get a RC4 Cipher; they should call one of the Cipher.getInstance factory methods instead.

See Also:
Cipher.getInstance(java.lang.String)