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.Object
Factory 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 Wrapper
createWrapper(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:KeyWrapOperatorFactory
Create a key wrapper using the passed in key and parameters.- Specified by:
createKeyWrapper
in 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:KeyWrapOperatorFactory
Create a key un-wrapper using the passed in key and parameters.- Specified by:
createKeyUnwrapper
in 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.
-
-