|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanon.crypto.AesEncryption
public class AesEncryption
This class is a wrapper for doing AES encryption stuff.
| Field Summary | |
|---|---|
private org.bouncycastle.crypto.engines.AESFastEngine |
m_encryptionInstance
Stores the used AES encryption algorithm. |
| Constructor Summary | |
|---|---|
AesEncryption(byte[] a_aesKey)
Creates a new instance of AesEncryption. |
|
| Method Summary | |
|---|---|
byte[] |
encrypt(byte[] a_plainData)
Encrypts one single plain data block and returns the cipher data block. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private org.bouncycastle.crypto.engines.AESFastEngine m_encryptionInstance
| Constructor Detail |
|---|
public AesEncryption(byte[] a_aesKey)
throws java.lang.Exception
a_aesKey - The 128 bit or 192 bit or 256 bit AES key.
java.lang.Exception| Method Detail |
|---|
public byte[] encrypt(byte[] a_plainData)
throws java.lang.Exception
a_plainData - The plain data block.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||