public class AsymmetricKeyWithIVParameters extends Object implements AsymmetricCipherParameters
Constructor and Description |
---|
AsymmetricKeyWithIVParameters(org.bouncycastle.crypto.params.AsymmetricKeyParameter key,
byte[] iv)
Initialize parameters.
|
AsymmetricKeyWithIVParameters(org.bouncycastle.crypto.params.AsymmetricKeyParameter key,
int ivSize)
Initialize parameters with a random initialization vector.
|
AsymmetricKeyWithIVParameters(org.bouncycastle.crypto.params.AsymmetricKeyParameter key,
int ivSize,
SecureRandom random)
Initialize parameters with a random initialization vector.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getIV() |
org.bouncycastle.crypto.params.AsymmetricKeyParameter |
getKeyParameters() |
public AsymmetricKeyWithIVParameters(org.bouncycastle.crypto.params.AsymmetricKeyParameter key, byte[] iv)
key
- the key.iv
- the initialization vector.public AsymmetricKeyWithIVParameters(org.bouncycastle.crypto.params.AsymmetricKeyParameter key, int ivSize)
key
- the key.ivSize
- the size of the initialization vector to randomize using a new default SecureRandom.public AsymmetricKeyWithIVParameters(org.bouncycastle.crypto.params.AsymmetricKeyParameter key, int ivSize, SecureRandom random)
key
- the key.ivSize
- the size of the initialization vector to randomize.random
- the random source.Copyright © 2004–2021 XWiki. All rights reserved.