org.xwiki.crypto.passwd.internal
Class CAST5PasswordCiphertext

java.lang.Object
  extended by org.xwiki.crypto.passwd.internal.AbstractPasswordCiphertext
      extended by org.xwiki.crypto.passwd.internal.CAST5PasswordCiphertext
All Implemented Interfaces:
java.io.Serializable, PasswordCiphertext

public class CAST5PasswordCiphertext
extends AbstractPasswordCiphertext

A password ciphertext service implementing CAST5.

Since:
2.5M1
Version:
$Id$
See Also:
Serialized Form

Constructor Summary
CAST5PasswordCiphertext()
           
 
Method Summary
protected  org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher newCipherInstance()
          The cipher engine.
 
Methods inherited from class org.xwiki.crypto.passwd.internal.AbstractPasswordCiphertext
decrypt, getCipher, getKeyLength, getRequiredKeySize, init, serialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CAST5PasswordCiphertext

public CAST5PasswordCiphertext()
Method Detail

newCipherInstance

protected org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher newCipherInstance()
The cipher engine. It is very important to wrap the engine with CBC or similar, otherwise large patches of the same data will translate to large patches of the same ciphertext. see: http://en.wikipedia.org/wiki/Block_cipher_modes_of_operation

Specified by:
newCipherInstance in class AbstractPasswordCiphertext
Returns:
a new instance of the cipher engine to use.
See Also:
AbstractPasswordCiphertext.newCipherInstance()


Copyright © 2004-2011 XWiki. All Rights Reserved.