KeyWrapper
BcAESSymmetricKeyWrapper
public class BcSymmetricKeyWrapper extends SymmetricKeyWrapper
Constructor | Description |
---|---|
BcSymmetricKeyWrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier wrappingAlgorithm,
org.bouncycastle.crypto.Wrapper wrapper,
org.bouncycastle.crypto.params.KeyParameter wrappingKey) |
Modifier and Type | Method | Description |
---|---|---|
byte[] |
generateWrappedKey(GenericKey encryptionKey) |
|
BcSymmetricKeyWrapper |
setSecureRandom(java.security.SecureRandom random) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithmIdentifier
public BcSymmetricKeyWrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier wrappingAlgorithm, org.bouncycastle.crypto.Wrapper wrapper, org.bouncycastle.crypto.params.KeyParameter wrappingKey)
public BcSymmetricKeyWrapper setSecureRandom(java.security.SecureRandom random)
public byte[] generateWrappedKey(GenericKey encryptionKey) throws OperatorException
OperatorException