You are right. This is a bug. It has been fixed now.

Thanks,

Vishal

Anton Krasovsky wrote:

Hello,

when trying to decrypt document that has <KeySize> element,
I get an NumberFormatException at XMLCypher.newEncryptionMethod()
line 2502

I think instead of:

if (null != keySizeElement) {
    result.setKeySize(
        Integer.valueOf(keySizeElement.getNodeValue()).intValue());
}

It should be:

if (null != keySizeElement) {
    result.setKeySize(
        Integer.valueOf(keySizeElement.getNodeValue()
            .getFirstChild()).intValue());
}

Best regards,
Anton




Reply via email to