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
,ARIA.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
Modifier and TypeMethodDescriptioncreateKeyUnwrapper
(K key, T parameters) Create a key un-wrapper using the passed in key and parameters.createKeyWrapper
(K key, T parameters) Create a key wrapper using the passed in key and parameters.
-
Method Details
-
createKeyWrapper
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
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.
-