{
ASN1InputStream aIn = new ASN1InputStream(params);
try
{
RSAESOAEPparams oaepP = new RSAESOAEPparams((ASN1Sequence)aIn.readObject());
currentSpec = new OAEPParameterSpec(
oaepP.getHashAlgorithm().getObjectId().getId(),
oaepP.getMaskGenAlgorithm().getObjectId().getId(),
new MGF1ParameterSpec(AlgorithmIdentifier.getInstance(oaepP.getMaskGenAlgorithm().getParameters()).getObjectId().getId()),