https://bz.apache.org/bugzilla/show_bug.cgi?id=67675

--- Comment #8 from Christopher Schultz <ch...@christopherschultz.net> ---
I have uncommitted work locally which can read the ASN.1 and perform the
decryption, which does not fail (i.e. no exception is thrown).

But when interpreting the decrypted data as an ASN.1 stream, the tags don't
make any sense. I haven't looked that hard at the outbound ASN.1 stream. My
immediate assumption was that it was complete garbage, but it's possible there
is a bug in the parser which is trying to interpret some byte as a tag-id when
it should be something else.

I'd be happy to look more into it.

The fun part with X9.52 is that it doesn't specify a padding method for the
cipher. Using PKCS5Padding results in a BadPaddingException from the Cipher,
and using Nopadding results in garbage ciphertext. :(

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to