public class JCEStreamCipher extends javax.crypto.CipherSpi implements PBE
| Modifier and Type | Class and Description |
|---|---|
static class |
JCEStreamCipher.Blowfish_CFB8
Blowfish
|
static class |
JCEStreamCipher.Blowfish_OFB8
Blowfish
|
static class |
JCEStreamCipher.DES_CFB8
DES
|
static class |
JCEStreamCipher.DES_OFB8
DES
|
static class |
JCEStreamCipher.DESede_CFB8
DESede
|
static class |
JCEStreamCipher.DESede_OFB8
DESede
|
static class |
JCEStreamCipher.Skipjack_CFB8
SKIPJACK
|
static class |
JCEStreamCipher.Skipjack_OFB8
SKIPJACK
|
static class |
JCEStreamCipher.Twofish_CFB8
Twofish
|
static class |
JCEStreamCipher.Twofish_OFB8
Twofish
|
| Modifier | Constructor and Description |
|---|---|
protected |
JCEStreamCipher(StreamCipher 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)
should never be called.
|
protected void |
engineSetPadding(java.lang.String padding)
should never be called.
|
protected java.security.Key |
engineUnwrap(byte[] wrappedKey,
java.lang.String wrappedKeyAlgorithm,
int wrappedKeyType) |
protected byte[] |
engineUpdate(byte[] input,
int inputOffset,
int inputLen) |
protected int |
engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset) |
protected byte[] |
engineWrap(java.security.Key key) |
protected JCEStreamCipher(StreamCipher engine, int ivLength)
protected int engineGetBlockSize()
engineGetBlockSize in class javax.crypto.CipherSpiprotected byte[] engineGetIV()
engineGetIV in class javax.crypto.CipherSpiprotected int engineGetKeySize(java.security.Key key)
engineGetKeySize in class javax.crypto.CipherSpiprotected int engineGetOutputSize(int inputLen)
engineGetOutputSize in class javax.crypto.CipherSpiprotected java.security.AlgorithmParameters engineGetParameters()
engineGetParameters in class javax.crypto.CipherSpiprotected void engineSetMode(java.lang.String mode)
engineSetMode in class javax.crypto.CipherSpiprotected void engineSetPadding(java.lang.String padding)
throws javax.crypto.NoSuchPaddingException
engineSetPadding in class javax.crypto.CipherSpijavax.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 javax.crypto.CipherSpijava.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 javax.crypto.CipherSpijava.security.InvalidKeyExceptionjava.security.InvalidAlgorithmParameterExceptionprotected void engineInit(int opmode,
java.security.Key key,
java.security.SecureRandom random)
throws java.security.InvalidKeyException
engineInit in class javax.crypto.CipherSpijava.security.InvalidKeyExceptionprotected byte[] engineUpdate(byte[] input,
int inputOffset,
int inputLen)
engineUpdate in class javax.crypto.CipherSpiprotected int engineUpdate(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws javax.crypto.ShortBufferException
engineUpdate in class javax.crypto.CipherSpijavax.crypto.ShortBufferExceptionprotected byte[] engineDoFinal(byte[] input,
int inputOffset,
int inputLen)
throws javax.crypto.BadPaddingException,
javax.crypto.IllegalBlockSizeException
engineDoFinal in class javax.crypto.CipherSpijavax.crypto.BadPaddingExceptionjavax.crypto.IllegalBlockSizeExceptionprotected int engineDoFinal(byte[] input,
int inputOffset,
int inputLen,
byte[] output,
int outputOffset)
throws javax.crypto.BadPaddingException
engineDoFinal in class javax.crypto.CipherSpijavax.crypto.BadPaddingExceptionprotected byte[] engineWrap(java.security.Key key)
throws javax.crypto.IllegalBlockSizeException,
java.security.InvalidKeyException
engineWrap in class javax.crypto.CipherSpijavax.crypto.IllegalBlockSizeExceptionjava.security.InvalidKeyExceptionprotected java.security.Key engineUnwrap(byte[] wrappedKey,
java.lang.String wrappedKeyAlgorithm,
int wrappedKeyType)
throws java.security.InvalidKeyException
engineUnwrap in class javax.crypto.CipherSpijava.security.InvalidKeyException