public class JCEBlockCipher extends WrapCipherSpi implements PBE
| Modifier and Type | Class and Description |
|---|---|
static class |
JCEBlockCipher.DES
DES
|
static class |
JCEBlockCipher.DESCBC
DESCBC
|
static class |
JCEBlockCipher.GOST28147
GOST28147
|
static class |
JCEBlockCipher.GOST28147cbc |
static class |
JCEBlockCipher.PBEWithAESCBC
PBEWithAES-CBC
|
static class |
JCEBlockCipher.PBEWithMD5AndDES
PBEWithMD5AndDES
|
static class |
JCEBlockCipher.PBEWithMD5AndRC2
PBEWithMD5AndRC2
|
static class |
JCEBlockCipher.PBEWithSHA1AndDES
PBEWithSHA1AndDES
|
static class |
JCEBlockCipher.PBEWithSHA1AndRC2
PBEWithSHA1AndRC2
|
static class |
JCEBlockCipher.PBEWithSHAAnd128BitRC2
PBEWithSHAAnd128BitRC2-CBC
|
static class |
JCEBlockCipher.PBEWithSHAAnd40BitRC2
PBEWithSHAAnd40BitRC2-CBC
|
static class |
JCEBlockCipher.PBEWithSHAAndDES2Key
PBEWithSHAAnd2-KeyTripleDES-CBC
|
static class |
JCEBlockCipher.PBEWithSHAAndDES3Key
PBEWithSHAAnd3-KeyTripleDES-CBC
|
static class |
JCEBlockCipher.PBEWithSHAAndTwofish
PBEWithSHAAndTwofish-CBC
|
static class |
JCEBlockCipher.RC2
RC2
|
static class |
JCEBlockCipher.RC2CBC
RC2CBC
|
WrapCipherSpi.RC2WrapengineParams, pbeHash, pbeIvSize, pbeKeySize, pbeType, wrapEngine| Modifier | Constructor and Description |
|---|---|
protected |
JCEBlockCipher(BlockCipher engine) |
protected |
JCEBlockCipher(BlockCipher engine,
int ivLength) |
protected |
JCEBlockCipher(BufferedBlockCipher engine,
int ivLength) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
engineDoFinal(byte[] input,
int inputOffset,
int inputLen) |
protected int |
engineDoFinal(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset) |
protected int |
engineGetBlockSize() |
protected byte[] |
engineGetIV() |
protected int |
engineGetKeySize(Key key) |
protected int |
engineGetOutputSize(int inputLen) |
protected AlgorithmParameters |
engineGetParameters() |
protected void |
engineInit(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random) |
protected void |
engineInit(int opmode,
Key key,
AlgorithmParameters params,
SecureRandom random) |
protected void |
engineInit(int opmode,
Key key,
SecureRandom random) |
protected void |
engineSetMode(String mode) |
protected void |
engineSetPadding(String padding) |
protected byte[] |
engineUpdate(byte[] input,
int inputOffset,
int inputLen) |
protected int |
engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset) |
engineUnwrap, engineWrapengineDoFinal, engineUpdate, engineUpdateAAD, engineUpdateAADprotected JCEBlockCipher(BlockCipher engine)
protected JCEBlockCipher(BlockCipher engine, int ivLength)
protected JCEBlockCipher(BufferedBlockCipher engine, int ivLength)
protected int engineGetBlockSize()
engineGetBlockSize in class WrapCipherSpiprotected byte[] engineGetIV()
engineGetIV in class WrapCipherSpiprotected int engineGetKeySize(Key key)
engineGetKeySize in class WrapCipherSpiprotected int engineGetOutputSize(int inputLen)
engineGetOutputSize in class WrapCipherSpiprotected AlgorithmParameters engineGetParameters()
engineGetParameters in class WrapCipherSpiprotected void engineSetMode(String mode) throws NoSuchAlgorithmException
engineSetMode in class WrapCipherSpiNoSuchAlgorithmExceptionprotected void engineSetPadding(String padding) throws NoSuchPaddingException
engineSetPadding in class WrapCipherSpiNoSuchPaddingExceptionprotected void engineInit(int opmode,
Key key,
AlgorithmParameterSpec params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
engineInit in class WrapCipherSpiInvalidKeyExceptionInvalidAlgorithmParameterExceptionprotected void engineInit(int opmode,
Key key,
AlgorithmParameters params,
SecureRandom random)
throws InvalidKeyException,
InvalidAlgorithmParameterException
engineInit in class WrapCipherSpiInvalidKeyExceptionInvalidAlgorithmParameterExceptionprotected void engineInit(int opmode,
Key key,
SecureRandom random)
throws InvalidKeyException
engineInit in class WrapCipherSpiInvalidKeyExceptionprotected byte[] engineUpdate(byte[] input,
int inputOffset,
int inputLen)
engineUpdate in class WrapCipherSpiprotected int engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws ShortBufferException
engineUpdate in class WrapCipherSpiShortBufferExceptionprotected byte[] engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
throws IllegalBlockSizeException,
BadPaddingException
engineDoFinal in class WrapCipherSpiIllegalBlockSizeExceptionBadPaddingExceptionprotected int engineDoFinal(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws IllegalBlockSizeException,
BadPaddingException
engineDoFinal in class WrapCipherSpiIllegalBlockSizeExceptionBadPaddingExceptionCopyright © 2015. All rights reserved.