Package org.bouncycastle.crypto
Interface KeyWrapOperatorFactory<T extends Parameters,K extends Key>
-
- Type Parameters:
T
- the parameter type for the key wrappers/un-wrappers we produce.
- All Known Implementing Classes:
AES.KeyWrapOperatorFactory
,Camellia.KeyWrapOperatorFactory
,ElGamal.KeyWrapOperatorFactory
,FipsAES.KeyWrapOperatorFactory
,FipsKeyWrapOperatorFactory
,FipsRSA.KeyWrapOperatorFactory
,FipsTripleDES.KeyWrapOperatorFactory
,RC2.KeyWrapOperatorFactory
,RSA.KeyWrapOperatorFactory
,SEED.KeyWrapOperatorFactory
,Serpent.KeyWrapOperatorFactory
,TripleDES.KeyWrapOperatorFactory
,Twofish.KeyWrapOperatorFactory
public interface KeyWrapOperatorFactory<T extends Parameters,K extends Key>
Base interface for a creator of key wrappers and un-wrappers.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
createKeyWrapper
KeyWrapper<T> createKeyWrapper(K key, T parameters)
Create a key wrapper using the passed in key and parameters.- Parameters:
key
- the key to initialize the wrapper with.parameters
- the parameters to initialize the wrapper with.- Returns:
- an initialized key wrapper.
-
createKeyUnwrapper
KeyUnwrapper<T> createKeyUnwrapper(K key, T parameters)
Create a key un-wrapper using the passed in key and parameters.- 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.
-
-