cryptix.provider.key

Class RC4KeyGenerator

public class RC4KeyGenerator extends RawKeyGenerator

A variable-length key generator for RC4.

This implementation allows keys to have a length of between 40 and 1024 bits. The default length is 128 bits.

References:

  1. Andrew Roos <andrewr@vironix.co.za> (Vironix Software Laboratories), A Class of Weak Keys in the RC4 Stream Cipher, Preliminary draft posted to sci.crypt, 4th November 1997.

Copyright © 1997 Systemics Ltd on behalf of the Cryptix Development Team.
All rights reserved.

$Revision: 1.2 $

Since: Cryptix 2.2.2

Author: David Hopwood

Constructor Summary
RC4KeyGenerator()
Method Summary
protected booleanisWeak(byte[] key)
Returns true iff key is a weak RC4 key, as described in Andrew Roos' paper.

Constructor Detail

RC4KeyGenerator

public RC4KeyGenerator()

Method Detail

isWeak

protected boolean isWeak(byte[] key)
Returns true iff key is a weak RC4 key, as described in Andrew Roos' paper.