org.bouncycastle.jce.provider

Class WrapCipherSpi

Implemented Interfaces:
PBE
Known Direct Subclasses:
AES.RFC3211Wrap, AES.Wrap, Camellia.RFC3211Wrap, Camellia.Wrap, JCEBlockCipher, JCEElGamalCipher, JCEIESCipher, JCERSACipher, JCEStreamCipher, SEED.Wrap, WrapCipherSpi.DESEDEWrap, WrapCipherSpi.RC2Wrap, WrapCipherSpi.RFC3211DESedeWrap

public abstract class WrapCipherSpi
extends CipherSpi
implements PBE

Nested Class Summary

static class
WrapCipherSpi.DESEDEWrap
static class
WrapCipherSpi.RC2Wrap
static class
WrapCipherSpi.RFC3211DESedeWrap

Field Summary

protected AlgorithmParameters
engineParams
protected int
pbeHash
protected int
pbeIvSize
protected int
pbeKeySize
protected int
pbeType
protected Wrapper
wrapEngine

Fields inherited from interface org.bouncycastle.jce.provider.PBE

MD5, OPENSSL, PKCS12, PKCS5S1, PKCS5S2, RIPEMD160, SHA1, SHA256, TIGER

Constructor Summary

WrapCipherSpi()
WrapCipherSpi(Wrapper wrapEngine)
WrapCipherSpi(Wrapper wrapEngine, int ivSize)

Method Summary

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 Key
engineUnwrap(byte[] wrappedKey, 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(Key key)

Field Details

engineParams

protected AlgorithmParameters engineParams

pbeHash

protected int pbeHash

pbeIvSize

protected int pbeIvSize

pbeKeySize

protected int pbeKeySize

pbeType

protected int pbeType

wrapEngine

protected Wrapper wrapEngine

Constructor Details

WrapCipherSpi

protected WrapCipherSpi()

WrapCipherSpi

protected WrapCipherSpi(Wrapper wrapEngine)

WrapCipherSpi

protected WrapCipherSpi(Wrapper wrapEngine,
                        int ivSize)

Method Details

engineDoFinal

protected byte[] engineDoFinal(byte[] input,
                               int inputOffset,
                               int inputLen)
            throws IllegalBlockSizeException,
                   BadPaddingException

engineDoFinal

protected int engineDoFinal(byte[] input,
                            int inputOffset,
                            int inputLen,
                            byte[] output,
                            int outputOffset)
            throws IllegalBlockSizeException,
                   BadPaddingException

engineGetBlockSize

protected int engineGetBlockSize()

engineGetIV

protected byte[] engineGetIV()

engineGetKeySize

protected int engineGetKeySize(Key key)

engineGetOutputSize

protected int engineGetOutputSize(int inputLen)

engineGetParameters

protected AlgorithmParameters engineGetParameters()

engineInit

protected void engineInit(int opmode,
                          Key key,
                          AlgorithmParameterSpec params,
                          SecureRandom random)
            throws InvalidKeyException,
                   InvalidAlgorithmParameterException

engineInit

protected void engineInit(int opmode,
                          Key key,
                          AlgorithmParameters params,
                          SecureRandom random)
            throws InvalidKeyException,
                   InvalidAlgorithmParameterException

engineInit

protected void engineInit(int opmode,
                          Key key,
                          SecureRandom random)
            throws InvalidKeyException

engineSetMode

protected void engineSetMode(String mode)
            throws NoSuchAlgorithmException

engineSetPadding

protected void engineSetPadding(String padding)
            throws NoSuchPaddingException

engineUnwrap

protected Key engineUnwrap(byte[] wrappedKey,
                           String wrappedKeyAlgorithm,
                           int wrappedKeyType)
            throws InvalidKeyException

engineUpdate

protected byte[] engineUpdate(byte[] input,
                              int inputOffset,
                              int inputLen)

engineUpdate

protected int engineUpdate(byte[] input,
                           int inputOffset,
                           int inputLen,
                           byte[] output,
                           int outputOffset)
            throws ShortBufferException

engineWrap

protected byte[] engineWrap(Key key)
            throws IllegalBlockSizeException,
                   InvalidKeyException