com.sshtools.cipher
Class AESEngine
java.lang.Object
com.sshtools.cipher.AESEngine
- All Implemented Interfaces:
- com.maverick.crypto.engines.CipherEngine
- public class AESEngine
- extends java.lang.Object
- implements com.maverick.crypto.engines.CipherEngine
An implementation of the AES (Rijndael), from FIPS-197.
For further details see: http://csrc.nist.gov/encryption/aes/.
This implementation is based on optimizations from Dr. Brian Gladman's paper and C code at
http://fp.gladman.plus.com/cryptography_technology/rijndael/
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AESEngine
public AESEngine()
init
public void init(boolean forEncryption,
byte[] key)
- Specified by:
init
in interface com.maverick.crypto.engines.CipherEngine
getBlockSize
public int getBlockSize()
- Specified by:
getBlockSize
in interface com.maverick.crypto.engines.CipherEngine
processBlock
public int processBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
throws java.io.IOException
- Specified by:
processBlock
in interface com.maverick.crypto.engines.CipherEngine
- Throws:
java.io.IOException
reset
public void reset()
Copyright © 2003 3SP LTD. All Rights Reserved.