{
if (key instanceof BCRainbowPublicKey)
{
BCRainbowPublicKey k = (BCRainbowPublicKey)key;
return new RainbowPublicKeyParameters(k.getDocLength(), k.getCoeffQuadratic(),
k.getCoeffSingular(), k.getCoeffScalar());
}
throw new InvalidKeyException("can't identify Rainbow public key: " + key.getClass().getName());
}