}
else if (McElieceCCA2PrivateKeySpec.class
.isAssignableFrom(keySpec))
{
BCMcElieceCCA2PrivateKey privKey = (BCMcElieceCCA2PrivateKey)key;
return new McElieceCCA2PrivateKeySpec(OID, privKey.getN(), privKey
.getK(), privKey.getField(), privKey.getGoppaPoly(),
privKey.getP(), privKey.getH(), privKey.getQInv());
}
}
else if (key instanceof BCMcElieceCCA2PublicKey)