|
|||||||||
| 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 CipherSpicom.motorola.iden.crypto.CipherSpimode - the cipher modeNoSuchAlgorithmException - if the requested cipher mode does
not exist
protected void engineSetPadding(java.lang.String padding)
throws NoSuchPaddingException
engineSetPadding in class CipherSpicom.motorola.iden.crypto.CipherSpipadding - the padding mechanismNoSuchPaddingException - if the requested padding mechanism
does not existprotected int engineGetBlockSize()
engineGetBlockSize in class CipherSpicom.motorola.iden.crypto.CipherSpiprotected byte[] engineGetIV()
engineGetIV in class CipherSpiSecurityException:ARC4 - does not use IV
protected void engineInit(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
engineInit in class CipherSpiopmode,key,ivparmeters - and random.
protected byte[] engineUpdate(byte[] input,
int inputOffset,
int inputLen)
engineUpdate in class CipherSpiinput, - inputoffset, inputLen
protected byte[] engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
throws IllegalBlockSizeException,
BadPaddingException
engineDoFinal in class CipherSpiinput, - 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 | ||||||||