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
Factory for RC2 key wrap/unwrap operators.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateKeyUnwrapper(SymmetricKey key, RC2.Parameters parameters) Create a key un-wrapper using the passed in key and parameters.createKeyWrapper(SymmetricKey key, RC2.Parameters parameters) Create a key wrapper using the passed in key and parameters.protected org.bouncycastle.crypto.internal.WrappercreateWrapper(boolean forWrapping, SymmetricKey key, RC2.Parameters parameters, SecureRandom random)
-
Constructor Details
-
KeyWrapOperatorFactory
public KeyWrapOperatorFactory()
-
-
Method Details
-
createWrapper
protected org.bouncycastle.crypto.internal.Wrapper createWrapper(boolean forWrapping, SymmetricKey key, RC2.Parameters parameters, SecureRandom random) -
createKeyWrapper
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
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.
-