Package org.bouncycastle.crypto.general
Class RC2.KeyWrapOperatorFactory
- java.lang.Object
-
- org.bouncycastle.crypto.general.RC2.KeyWrapOperatorFactory
-
- All Implemented Interfaces:
KeyWrapOperatorFactory<RC2.Parameters,SymmetricKey>
- Enclosing class:
- RC2
public static final class RC2.KeyWrapOperatorFactory extends java.lang.ObjectFactory for RC2 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, RC2.Parameters parameters, java.security.SecureRandom random)
-
-
-
Method Detail
-
createWrapper
protected Wrapper createWrapper(boolean forWrapping, SymmetricKey key, RC2.Parameters 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.
-
-