public static final class ElGamal.KeyWrapOperatorFactory extends java.lang.Object implements KeyWrapOperatorFactory<ElGamal.WrapParameters,AsymmetricDHKey>
Constructor and Description |
---|
KeyWrapOperatorFactory() |
Modifier and Type | Method and Description |
---|---|
KeyUnwrapperUsingSecureRandom<ElGamal.WrapParameters> |
createKeyUnwrapper(AsymmetricDHKey key,
ElGamal.WrapParameters parameters)
Create a key un-wrapper using the passed in key and parameters.
|
KeyWrapperUsingSecureRandom<ElGamal.WrapParameters> |
createKeyWrapper(AsymmetricDHKey key,
ElGamal.WrapParameters parameters)
Create a key wrapper using the passed in key and parameters.
|
public KeyWrapperUsingSecureRandom<ElGamal.WrapParameters> createKeyWrapper(AsymmetricDHKey key, ElGamal.WrapParameters parameters)
KeyWrapOperatorFactory
createKeyWrapper
in interface KeyWrapOperatorFactory<ElGamal.WrapParameters,AsymmetricDHKey>
key
- the key to initialize the wrapper with.parameters
- the parameters to initialize the wrapper with.public KeyUnwrapperUsingSecureRandom<ElGamal.WrapParameters> createKeyUnwrapper(AsymmetricDHKey key, ElGamal.WrapParameters parameters)
KeyWrapOperatorFactory
createKeyUnwrapper
in interface KeyWrapOperatorFactory<ElGamal.WrapParameters,AsymmetricDHKey>
key
- the key to initialize the un-wrapper with.parameters
- the parameters to initialize the un-wrapper with.