Package org.bouncycastle.operator.bc
Class BcSymmetricKeyUnwrapper
java.lang.Object
org.bouncycastle.operator.SymmetricKeyUnwrapper
org.bouncycastle.operator.bc.BcSymmetricKeyUnwrapper
- All Implemented Interfaces:
KeyUnwrapper
- Direct Known Subclasses:
BcAESSymmetricKeyUnwrapper
-
Constructor Summary
ConstructorsConstructorDescriptionBcSymmetricKeyUnwrapper(AlgorithmIdentifier wrappingAlgorithm, Wrapper wrapper, KeyParameter wrappingKey) -
Method Summary
Modifier and TypeMethodDescriptiongenerateUnwrappedKey(AlgorithmIdentifier encryptedKeyAlgorithm, byte[] encryptedKey) setSecureRandom(SecureRandom random) Methods inherited from class org.bouncycastle.operator.SymmetricKeyUnwrapper
getAlgorithmIdentifier
-
Constructor Details
-
BcSymmetricKeyUnwrapper
public BcSymmetricKeyUnwrapper(AlgorithmIdentifier wrappingAlgorithm, Wrapper wrapper, KeyParameter wrappingKey)
-
-
Method Details
-
setSecureRandom
-
generateUnwrappedKey
public GenericKey generateUnwrappedKey(AlgorithmIdentifier encryptedKeyAlgorithm, byte[] encryptedKey) throws OperatorException - Throws:
OperatorException
-