All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class au.net.aba.crypto.spec.RC4KeySpec

java.lang.Object
   |
   +----au.net.aba.crypto.spec.RC4KeySpec

public class RC4KeySpec
extends Object
implements KeySpec
A class that provides a specification for a RC4 key.


Variable Index

 o ident

Constructor Index

 o RC4KeySpec(byte[])
Uses the first 16 bytes in key as the RC4 key
 o RC4KeySpec(byte[], int)
Uses the first len bytes in key as the RC4 key
 o RC4KeySpec(byte[], int, int)
Uses the first len bytes in key, beginning at offset, as the RC4 key

Method Index

 o getKey()
Returns the RC4 key.

Variables

 o ident
 public static final String ident

Constructors

 o RC4KeySpec
 public RC4KeySpec(byte key[]) throws InvalidKeyException
Uses the first 16 bytes in key as the RC4 key

Parameters:
key - the bytes making up the key.
Throws: InvalidKeyException
if the key material is too short.
 o RC4KeySpec
 public RC4KeySpec(byte key[],
                   int len) throws InvalidKeyException
Uses the first len bytes in key as the RC4 key

Parameters:
key - the bytes making up the key.
len - the size (in bytes) of the key.
Throws: InvalidKeyException
if the key material is too short.
 o RC4KeySpec
 public RC4KeySpec(byte key[],
                   int offset,
                   int len) throws InvalidKeyException
Uses the first len bytes in key, beginning at offset, as the RC4 key

Parameters:
key - the bytes making up the key.
offset - the offset to start copying the key material.
len - the size (in bytes) of the key.
Throws: InvalidKeyException
if the key material is too short.

Methods

 o getKey
 public byte[] getKey()
Returns the RC4 key.

Returns:
the bytes making up the key.

All Packages  Class Hierarchy  This Package  Previous  Next  Index