org.bouncycastle.jce.provider
public class JCEBlockCipher extends WrapCipherSpi implements PBE
| Modifier and Type | Class and Description |
|---|---|
static class |
JCEBlockCipher.AES
AES
|
static class |
JCEBlockCipher.AESCBC
AESCBC
|
static class |
JCEBlockCipher.AESCFB
AESCFB
|
static class |
JCEBlockCipher.AESOFB
AESOFB
|
static class |
JCEBlockCipher.Blowfish
Blowfish
|
static class |
JCEBlockCipher.BlowfishCBC
Blowfish CBC
|
static class |
JCEBlockCipher.CAST5
CAST5
|
static class |
JCEBlockCipher.CAST5CBC
CAST5 CBC
|
static class |
JCEBlockCipher.CAST6
CAST6
|
static class |
JCEBlockCipher.DES
DES
|
static class |
JCEBlockCipher.DESCBC
DESCBC
|
static class |
JCEBlockCipher.DESede
DESede
|
static class |
JCEBlockCipher.DESedeCBC
DESedeCBC
|
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
|
static class |
JCEBlockCipher.RC5
RC5
|
static class |
JCEBlockCipher.RC564
RC564
|
static class |
JCEBlockCipher.RC6
RC6
|
static class |
JCEBlockCipher.Rijndael
Rijndael
|
static class |
JCEBlockCipher.SEED
SEED
|
static class |
JCEBlockCipher.Serpent
Serpent
|
static class |
JCEBlockCipher.Skipjack
SKIPJACK
|
static class |
JCEBlockCipher.TEA
TEA
|
static class |
JCEBlockCipher.Twofish
Twofish
|
static class |
JCEBlockCipher.XTEA
XTEA
|
WrapCipherSpi.DESEDEWrap, WrapCipherSpi.RC2Wrap, WrapCipherSpi.RFC3211DESedeWrapengineParams, 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(java.security.Key key) |
protected int |
engineGetOutputSize(int inputLen) |
protected java.security.AlgorithmParameters |
engineGetParameters() |
protected void |
engineInit(int opmode,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random) |
protected void |
engineInit(int opmode,
java.security.Key key,
java.security.AlgorithmParameters params,
java.security.SecureRandom random) |
protected void |
engineInit(int opmode,
java.security.Key key,
java.security.SecureRandom random) |
protected void |
engineSetMode(java.lang.String mode) |
protected void |
engineSetPadding(java.lang.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, engineWrapprotected 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(java.security.Key key)
engineGetKeySize in class WrapCipherSpiprotected int engineGetOutputSize(int inputLen)
engineGetOutputSize in class WrapCipherSpiprotected java.security.AlgorithmParameters engineGetParameters()
engineGetParameters in class WrapCipherSpiprotected void engineSetMode(java.lang.String mode)
throws java.security.NoSuchAlgorithmException
engineSetMode in class WrapCipherSpijava.security.NoSuchAlgorithmExceptionprotected void engineSetPadding(java.lang.String padding)
throws javax.crypto.NoSuchPaddingException
engineSetPadding in class WrapCipherSpijavax.crypto.NoSuchPaddingExceptionprotected void engineInit(int opmode,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
engineInit in class WrapCipherSpijava.security.InvalidKeyExceptionjava.security.InvalidAlgorithmParameterExceptionprotected void engineInit(int opmode,
java.security.Key key,
java.security.AlgorithmParameters params,
java.security.SecureRandom random)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException
engineInit in class WrapCipherSpijava.security.InvalidKeyExceptionjava.security.InvalidAlgorithmParameterExceptionprotected void engineInit(int opmode,
java.security.Key key,
java.security.SecureRandom random)
throws java.security.InvalidKeyException
engineInit in class WrapCipherSpijava.security.InvalidKeyExceptionprotected 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 javax.crypto.ShortBufferException
engineUpdate in class WrapCipherSpijavax.crypto.ShortBufferExceptionprotected byte[] engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
throws javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException
engineDoFinal in class WrapCipherSpijavax.crypto.IllegalBlockSizeExceptionjavax.crypto.BadPaddingExceptionprotected int engineDoFinal(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws javax.crypto.IllegalBlockSizeException,
javax.crypto.BadPaddingException
engineDoFinal in class WrapCipherSpijavax.crypto.IllegalBlockSizeExceptionjavax.crypto.BadPaddingException