|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxta.security.impl.cipher.RC4Cipher
This class implements the RC4 stream cipher
Fields inherited from interface jxta.security.cipher.Cipher |
ALG_RC4,
Ciper,
MODE_DECRYPT,
MODE_ENCRYPT,
MODE_UNKNOWN |
Constructor Summary | |
RC4Cipher()
Constructor |
Method Summary | |
void |
clearDebug()
turn off debugging |
int |
doFinal(byte[] inBuf,
int inOff,
int inLen,
byte[] outBuf,
int outOff)
Call here if you only have one buffer, or its the last buffer. |
byte |
getAlgorithm()
accessor for algorithm |
java.lang.String |
getAlgorithmName()
|
void |
init(jxta.security.cipher.Key theKey,
byte theMode)
|
void |
init(jxta.security.cipher.Key theKey,
byte theMode,
byte[] b,
int off,
int len)
Initialize key. |
void |
setDebug()
turn on debugging |
int |
transform(byte[] inBuf,
int inOff,
int inLen,
byte[] outBuf,
int outOff)
Encrypt or decrypt the inBuf, storing results in outBuff paying attention to offsets. |
int |
update(byte[] inBuf,
int inOff,
int inLen,
byte[] outBuf,
int outOff)
Call update only if one has multiple buffers to encrypt/decrypt |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public RC4Cipher()
Method Detail |
public java.lang.String getAlgorithmName()
public void setDebug()
public void clearDebug()
public byte getAlgorithm()
public void init(jxta.security.cipher.Key theKey, byte theMode, byte[] b, int off, int len) throws jxta.security.exceptions.CryptoException
public void init(jxta.security.cipher.Key theKey, byte theMode) throws jxta.security.exceptions.CryptoException
public int transform(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff)
public int update(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff) throws jxta.security.exceptions.CryptoException
public int doFinal(byte[] inBuf, int inOff, int inLen, byte[] outBuf, int outOff) throws jxta.security.exceptions.CryptoException
|
JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |