All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testifyproject.bouncycastle.operator.bc.BcRSAAsymmetricKeyUnwrapper Maven / Gradle / Ivy

The newest version!
package org.testifyproject.bouncycastle.operator.bc;

import org.testifyproject.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.testifyproject.bouncycastle.asn1.x509.AlgorithmIdentifier;
import org.testifyproject.bouncycastle.crypto.AsymmetricBlockCipher;
import org.testifyproject.bouncycastle.crypto.encodings.PKCS1Encoding;
import org.testifyproject.bouncycastle.crypto.engines.RSAEngine;
import org.testifyproject.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