public static final class RC2.KeyWrapOperatorFactory
extends java.lang.Object
| Constructor and Description |
|---|
KeyWrapOperatorFactory() |
| Modifier and Type | Method and 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 org.bouncycastle.crypto.internal.Wrapper |
createWrapper(boolean forWrapping,
SymmetricKey key,
RC2.Parameters parameters,
java.security.SecureRandom random) |
protected org.bouncycastle.crypto.internal.Wrapper createWrapper(boolean forWrapping,
SymmetricKey key,
RC2.Parameters parameters,
java.security.SecureRandom random)
public KeyWrapper<T> createKeyWrapper(K key, T parameters)
KeyWrapOperatorFactorycreateKeyWrapper in interface KeyWrapOperatorFactory<T extends Parameters,K extends Key>key - the key to initialize the wrapper with.parameters - the parameters to initialize the wrapper with.public KeyUnwrapper<T> createKeyUnwrapper(K key, T parameters)
KeyWrapOperatorFactorycreateKeyUnwrapper in interface KeyWrapOperatorFactory<T extends Parameters,K extends Key>key - the key to initialize the un-wrapper with.parameters - the parameters to initialize the un-wrapper with.