com.healthmarketscience.jackcess.util
Class RC4EngineCompat

java.lang.Object
  extended by org.bouncycastle.crypto.engines.RC4Engine
      extended by com.healthmarketscience.jackcess.util.RC4EngineCompat
All Implemented Interfaces:
StreamCipherCompat, org.bouncycastle.crypto.StreamCipher

public class RC4EngineCompat
extends org.bouncycastle.crypto.engines.RC4Engine
implements StreamCipherCompat

Simple Extension of RC4Engine which implements StreamCipherCompat and allows jackcess-encrypt to work with 1.51+ versions of Bouncy Castle.

Author:
James Ahlborn

Nested Class Summary
static class RC4EngineCompat.Factory
          StreamCipherFactory for this engine
 
Constructor Summary
RC4EngineCompat()
           
 
Method Summary
 int processStreamBytes(byte[] in, int inOff, int len, byte[] out, int outOff)
           
 
Methods inherited from class org.bouncycastle.crypto.engines.RC4Engine
getAlgorithmName, init, processBytes, reset, returnByte
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.healthmarketscience.jackcess.util.StreamCipherCompat
getAlgorithmName, init, reset, returnByte
 

Constructor Detail

RC4EngineCompat

public RC4EngineCompat()
Method Detail

processStreamBytes

public int processStreamBytes(byte[] in,
                              int inOff,
                              int len,
                              byte[] out,
                              int outOff)
Specified by:
processStreamBytes in interface StreamCipherCompat
See Also:
RC4Engine.processBytes(byte[], int, int, byte[], int)


Copyright © 2010-2017 Health Market Science. All Rights Reserved.