Package org.bouncycastle.crypto.general
Class Camellia.KeyWrapOperatorFactory
- java.lang.Object
-
- org.bouncycastle.crypto.general.Camellia.KeyWrapOperatorFactory
-
- All Implemented Interfaces:
KeyWrapOperatorFactory<Camellia.WrapParameters,SymmetricKey>
- Enclosing class:
- Camellia
public static final class Camellia.KeyWrapOperatorFactory extends java.lang.ObjectFactory for Camellia key wrap/unwrap operators.
-
-
Constructor Summary
Constructors Constructor Description KeyWrapOperatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyUnwrapper<T>createKeyUnwrapper(K key, T parameters)Create a key un-wrapper using the passed in key and parameters.KeyWrapper<T>createKeyWrapper(K key, T parameters)Create a key wrapper using the passed in key and parameters.protected WrappercreateWrapper(boolean forWrapping, SymmetricKey key, Camellia.WrapParameters parameters, java.security.SecureRandom random)
-
-
-
Method Detail
-
createWrapper
protected Wrapper createWrapper(boolean forWrapping, SymmetricKey key, Camellia.WrapParameters parameters, java.security.SecureRandom random)
-
createKeyWrapper
public KeyWrapper<T> createKeyWrapper(K key, T parameters)
Description copied from interface:KeyWrapOperatorFactoryCreate a key wrapper using the passed in key and parameters.- Specified by:
createKeyWrapperin interfaceKeyWrapOperatorFactory<T extends Parameters,K extends Key>- Parameters:
key- the key to initialize the wrapper with.parameters- the parameters to initialize the wrapper with.- Returns:
- an initialized key wrapper.
-
createKeyUnwrapper
public KeyUnwrapper<T> createKeyUnwrapper(K key, T parameters)
Description copied from interface:KeyWrapOperatorFactoryCreate a key un-wrapper using the passed in key and parameters.- Specified by:
createKeyUnwrapperin interfaceKeyWrapOperatorFactory<T extends Parameters,K extends Key>- Parameters:
key- the key to initialize the un-wrapper with.parameters- the parameters to initialize the un-wrapper with.- Returns:
- an initialized key un-wrapper.
-
-