Skip navigation links
oracle.security.crypto.jce.provider
Class AESSpi
java.lang.Object
javax.crypto.CipherSpi
oracle.security.crypto.jce.provider.PhaosBlockCipherSpi
oracle.security.crypto.jce.provider.AESSpi
-
public class AESSpi
- extends PhaosBlockCipherSpi
Method Summary |
protected void |
engineInit(int opMode, java.security.Key key, java.security.spec.AlgorithmParameterSpec paramSpec, java.security.SecureRandom random)
Initializes the engine with given mode, key, and source of randomness. |
protected void |
engineInit(int opMode, java.security.Key key, java.security.AlgorithmParameters params, java.security.SecureRandom random)
Initializes the engine with given mode, key, and source of randomness. |
protected void |
engineInit(int opMode, java.security.Key key, java.security.SecureRandom random)
Initializes the engine with given operating mode, key, and source of randomness. |
Methods inherited from class oracle.security.crypto.jce.provider.PhaosBlockCipherSpi |
checkIV, engineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetKeySize, engineGetOutputSize, engineGetParameters, engineSetMode, engineSetPadding, engineUnwrap, engineUpdate, engineUpdate, engineWrap |
Methods inherited from class javax.crypto.CipherSpi |
engineDoFinal, engineUpdate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AESSpi
public AESSpi()
engineInit
protected void engineInit(int opMode,
java.security.Key key,
java.security.AlgorithmParameters params,
java.security.SecureRandom random)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
- Description copied from class:
PhaosBlockCipherSpi
- Initializes the engine with given mode, key, and source of randomness. The IV is taken from the parameter spec, which must be an
IvParameterSpec
. If key is of "RAW" format, then it is assumed to employ a plain binary encoding. Any other format causes an InvalidKeyException
to be thrown.
-
- Overrides:
engineInit
in class PhaosBlockCipherSpi
-
- Throws:
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
engineInit
protected void engineInit(int opMode,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec paramSpec,
java.security.SecureRandom random)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
- Description copied from class:
PhaosBlockCipherSpi
- Initializes the engine with given mode, key, and source of randomness. The IV is taken from the parameter spec, which must be an
IvParameterSpec
. If key is of "RAW" format, then it is assumed to employ a plain binary encoding. Any other format causes an InvalidKeyException
to be thrown.
-
- Overrides:
engineInit
in class PhaosBlockCipherSpi
-
- Throws:
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
engineInit
protected void engineInit(int opMode,
java.security.Key key,
java.security.SecureRandom random)
throws java.security.InvalidKeyException
- Description copied from class:
PhaosBlockCipherSpi
- Initializes the engine with given operating mode, key, and source of randomness. Generates an initial vector randomly using the given source (if the feedback mode is CBC). If key is of "RAW" format, then it is assumed to employ a plain binary encoding. Any other format causes an
InvalidKeyException
to be thrown.
-
- Overrides:
engineInit
in class PhaosBlockCipherSpi
-
- Throws:
java.security.InvalidKeyException
Skip navigation links
Copyright © 2005, 2011 , Oracle. All rights reserved.