com.fitbur.bouncycastle.operator.bc.BcRSAAsymmetricKeyUnwrapper Maven / Gradle / Ivy
package com.fitbur.bouncycastle.operator.bc;
import com.fitbur.bouncycastle.asn1.ASN1ObjectIdentifier;
import com.fitbur.bouncycastle.asn1.x509.AlgorithmIdentifier;
import com.fitbur.bouncycastle.crypto.AsymmetricBlockCipher;
import com.fitbur.bouncycastle.crypto.encodings.PKCS1Encoding;
import com.fitbur.bouncycastle.crypto.engines.RSAEngine;
import com.fitbur.bouncycastle.crypto.params.AsymmetricKeyParameter;
public class BcRSAAsymmetricKeyUnwrapper
extends BcAsymmetricKeyUnwrapper
{
public BcRSAAsymmetricKeyUnwrapper(AlgorithmIdentifier encAlgId, AsymmetricKeyParameter privateKey)
{
super(encAlgId, privateKey);
}
protected AsymmetricBlockCipher createAsymmetricUnwrapper(ASN1ObjectIdentifier algorithm)
{
return new PKCS1Encoding(new RSAEngine());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy