public abstract class BcAsymmetricKeyWrapper extends AsymmetricKeyWrapper
Constructor and Description |
---|
BcAsymmetricKeyWrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlgId,
org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey) |
Modifier and Type | Method and Description |
---|---|
protected abstract org.bouncycastle.crypto.AsymmetricBlockCipher |
createAsymmetricWrapper(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm) |
byte[] |
generateWrappedKey(GenericKey encryptionKey) |
BcAsymmetricKeyWrapper |
setSecureRandom(java.security.SecureRandom random) |
getAlgorithmIdentifier
public BcAsymmetricKeyWrapper(org.bouncycastle.asn1.x509.AlgorithmIdentifier encAlgId, org.bouncycastle.crypto.params.AsymmetricKeyParameter publicKey)
public BcAsymmetricKeyWrapper setSecureRandom(java.security.SecureRandom random)
public byte[] generateWrappedKey(GenericKey encryptionKey) throws OperatorException
OperatorException
protected abstract org.bouncycastle.crypto.AsymmetricBlockCipher createAsymmetricWrapper(org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm)