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
ConstructorDescriptionBcSymmetricKeyUnwrapper
(org.bouncycastle.asn1.x509.AlgorithmIdentifier wrappingAlgorithm, org.bouncycastle.crypto.Wrapper wrapper, org.bouncycastle.crypto.params.KeyParameter wrappingKey) -
Method Summary
Modifier and TypeMethodDescriptiongenerateUnwrappedKey
(org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptedKeyAlgorithm, byte[] encryptedKey) setSecureRandom
(SecureRandom random) Methods inherited from class org.bouncycastle.operator.SymmetricKeyUnwrapper
getAlgorithmIdentifier
-
Constructor Details
-
BcSymmetricKeyUnwrapper
public BcSymmetricKeyUnwrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier wrappingAlgorithm, org.bouncycastle.crypto.Wrapper wrapper, org.bouncycastle.crypto.params.KeyParameter wrappingKey)
-
-
Method Details
-
setSecureRandom
-
generateUnwrappedKey
public GenericKey generateUnwrappedKey(org.bouncycastle.asn1.x509.AlgorithmIdentifier encryptedKeyAlgorithm, byte[] encryptedKey) throws OperatorException - Throws:
OperatorException
-