org.xwiki.crypto.passwd.internal
Class AESPasswordCiphertext

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

public class AESPasswordCiphertext
extends AbstractPasswordCiphertext

A password ciphertext service implementing AES-128.

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

Constructor Summary
AESPasswordCiphertext()
           
 
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

AESPasswordCiphertext

public AESPasswordCiphertext()
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:
CAST5PasswordCiphertext.newCipherInstance()


Copyright © 2004-2011 XWiki. All Rights Reserved.