public class MyAES
extends java.lang.Object
| Constructor and Description |
|---|
MyAES()
Creates a new instance of Aes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(boolean bEncrypt,
byte[] a_aesKey)
Initialises instance of Aes for encryption or decryption.
|
void |
init(boolean bEncrypt,
byte[] a_aesKey,
int off,
int len)
Initialises instance of Aes for encryption or decryption.
|
byte[] |
processBlockECB(byte[] a_plainData)
Encrypts/Decrypts one single plain data block and returns the cipher data block.
|
void |
processBlockECB(byte[] a_InData,
byte[] a_OutData)
Encrypts/Decrypts one single plain data block and returns the cipher data block.
|
void |
processBytesCTR(byte[] in,
int inOff,
byte[] out,
int outOff,
int len) |
public void init(boolean bEncrypt,
byte[] a_aesKey)
throws java.lang.Exception
a_aesKey - The 128 bit or 192 bit or 256 bit AES key.java.lang.Exceptionpublic void init(boolean bEncrypt,
byte[] a_aesKey,
int off,
int len)
throws java.lang.Exception
a_aesKey - The 128 bit or 192 bit or 256 bit AES key.java.lang.Exceptionpublic void processBlockECB(byte[] a_InData,
byte[] a_OutData)
throws java.lang.Exception
a_plainData - The plain data block.java.lang.Exceptionpublic byte[] processBlockECB(byte[] a_plainData)
throws java.lang.Exception
a_plainData - The plain data block.java.lang.Exceptionpublic void processBytesCTR(byte[] in,
int inOff,
byte[] out,
int outOff,
int len)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2023. All rights reserved.