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.
-
ident
-
-
RC4KeySpec(byte[])
- Uses the first 16 bytes in key as the RC4 key
-
RC4KeySpec(byte[], int)
- Uses the first len bytes in key as the RC4 key
-
RC4KeySpec(byte[], int, int)
- Uses the first len bytes in key, beginning at offset, as the RC4 key
-
getKey()
- Returns the RC4 key.
ident
public static final String ident
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.
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.
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.
getKey
public byte[] getKey()
- Returns the RC4 key.
- Returns:
- the bytes making up the key.
All Packages Class Hierarchy This Package Previous Next Index