public final class AESCipher extends javax.crypto.CipherSpi implements AlgorithmStatus
ECB, CFB, OFB, CBC,
PCBC) and padding schemes (PKCS5Padding,
NoPadding).
AES is a 128-bit block cipher with 128, 192, or 256-bit key.
| Modifier and Type | Field and Description |
|---|---|
static int |
AES_BLOCK_SIZE |
static int[] |
AES_KEYSIZES |
| Constructor and Description |
|---|
AESCipher()
Creates an instance of AES cipher with default ECB mode and
PKCS5Padding.
|
AESCipher(java.lang.String mode,
java.lang.String paddingScheme)
Creates an instance of AES cipher with the requested mode and
padding.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFipsApproved()
Module identifies if the cryptographic operation (algorithm) is FIPS certified
|
public static final int AES_BLOCK_SIZE
public static final int[] AES_KEYSIZES
public AESCipher()
java.lang.SecurityException - if this constructor fails to authenticate
the JCE framework.public AESCipher(java.lang.String mode,
java.lang.String paddingScheme)
throws java.security.NoSuchAlgorithmException,
javax.crypto.NoSuchPaddingException
mode - the cipher modepaddingScheme - the padding mechanismjava.security.NoSuchAlgorithmException - if the required cipher mode is
unavailablejavax.crypto.NoSuchPaddingException - if the required padding mechanism
is unavailablepublic boolean isFipsApproved()
AlgorithmStatusisFipsApproved in interface AlgorithmStatusAlgorithmStatus.isFipsApproved()© Portions Copyright 2003, 2012 IBM Corporation. All rights reserved.
© Portions Copyright 2003, 2012, Oracle and/or its affiliates. All rights reserved.