public class AES
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AES.BouncyCastleBlockCipherFactory
Implements BlockCipherFactory using BouncyCastle.
|
static class |
AES.SunJCEBlockCipherFactory
Implements BlockCipherFactory using Sun JCE.
|
static class |
AES.SunPKCS11BlockCipherFactory
Implements BlockCipherFactory using Sun PKCS#11.
|
Modifier and Type | Field and Description |
---|---|
static long |
FACTORY_TIMEOUT
The number of milliseconds after which the benchmark which elected
factory is to be considered expired. |
Constructor and Description |
---|
AES() |
Modifier and Type | Method and Description |
---|---|
static org.bouncycastle.crypto.BlockCipher |
createBlockCipher(int keySize)
Initializes a new BlockCipher instance which implements Advanced
Encryption Standard (AES).
|
public static final long FACTORY_TIMEOUT
factory
is to be considered expired.public static org.bouncycastle.crypto.BlockCipher createBlockCipher(int keySize)
keySize
- length of the AES key (16, 24, 32 bytes)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.