|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.motorola.iden.crypto.CipherSpi | +--com.motorola.iden.provider.ARC4
ARC4, a stream cipher. The key size of ARC4 is less than 256 bits.
MOTOROLA and the Stylized M Logo are registered trademarks of Motorola, Inc. Reg. U.S. Pat. & Tm. Off.
[CipherSpi]
Constructor Summary | |
ARC4()
|
Method Summary | |
protected byte[] |
engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
Finalizes ARC4 context |
protected int |
engineGetBlockSize()
ARC4 is a stream cipher. |
protected byte[] |
engineGetIV()
ARC4 does not use IV. |
protected void |
engineInit()
Inits security builder by using the members of DES instance. |
protected void |
engineInit(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random)
init ARC4 context. |
protected void |
engineSetMode(java.lang.String mode)
engineSetMode is not implemented |
protected void |
engineSetPadding(java.lang.String padding)
engineSetadding is not implemented |
protected byte[] |
engineUpdate(byte[] input,
int inputOffset,
int inputLen)
update ARC4 context. |
protected void |
finalize()
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ARC4()
Method Detail |
protected void engineSetMode(java.lang.String mode) throws NoSuchAlgorithmException
engineSetMode
in class CipherSpi
com.motorola.iden.crypto.CipherSpi
mode
- the cipher modeNoSuchAlgorithmException
- if the requested cipher mode does
not existprotected void engineSetPadding(java.lang.String padding) throws NoSuchPaddingException
engineSetPadding
in class CipherSpi
com.motorola.iden.crypto.CipherSpi
padding
- the padding mechanismNoSuchPaddingException
- if the requested padding mechanism
does not existprotected int engineGetBlockSize()
engineGetBlockSize
in class CipherSpi
com.motorola.iden.crypto.CipherSpi
protected byte[] engineGetIV()
engineGetIV
in class CipherSpi
SecurityException:ARC4
- does not use IVprotected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInit
in class CipherSpi
opmode,key,ivparmeters
- and random.protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen)
engineUpdate
in class CipherSpi
input,
- inputoffset, inputLenprotected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) throws IllegalBlockSizeException, BadPaddingException
engineDoFinal
in class CipherSpi
input,
- inputoffset, inputLenprotected void finalize()
finalize
in class java.lang.Object
protected void engineInit() throws InvalidKeyException, InvalidAlgorithmParameterException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |