public PBEWithSHAAnd128BitRC4() { super(new RC4Engine(), 0); } }
public void reset() { setKey(workingKey); }
public Base() { super(new RC4Engine(), 0); } }
public void reset() { setKey(workingKey); }
public PBEWithSHAAnd40BitRC4() { super(new RC4Engine(), 0); } }
/** * initialise a RC4 cipher. * * @param forEncryption whether or not we are for encryption. * @param params the parameters required to set up the cipher. * @exception IllegalArgumentException if the params argument is * inappropriate. */ public void init( boolean forEncryption, CipherParameters params ) { if (params instanceof KeyParameter) { /* * RC4 encryption and decryption is completely * symmetrical, so the 'forEncryption' is * irrelevant. */ workingKey = ((KeyParameter)params).getKey(); setKey(workingKey); return; } throw new IllegalArgumentException("invalid parameter passed to RC4 init - " + params.getClass().getName()); }
public PBEWithSHAAnd128Bit() { super(new RC4Engine(), 0, 128, SHA1); } }
/** * initialise a RC4 cipher. * * @param forEncryption whether or not we are for encryption. * @param params the parameters required to set up the cipher. * @exception IllegalArgumentException if the params argument is * inappropriate. */ public void init( boolean forEncryption, CipherParameters params ) { if (params instanceof KeyParameter) { /* * RC4 encryption and decryption is completely * symmetrical, so the 'forEncryption' is * irrelevant. */ workingKey = ((KeyParameter)params).getKey(); setKey(workingKey); return; } throw new IllegalArgumentException("invalid parameter passed to RC4 init - " + params.getClass().getName()); }
public PBEWithSHAAnd40Bit() { super(new RC4Engine(), 0, 40, SHA1); } }
protected StreamCipher createRC4StreamCipher() { return new RC4Engine(); }
public Base() { super(new RC4Engine(), 0); } }
protected StreamCipher createRC4StreamCipher() { return new RC4Engine(); }
StreamCipher cipher = new RC4Engine();
StreamCipher cipher = new RC4Engine();