RFR: 8296736: Some PKCS9Attribute can be created but cannot be encoded [v2]
Weijun Wang
weijun at openjdk.org
Tue Nov 15 15:32:51 UTC 2022
On Tue, 15 Nov 2022 00:49:23 GMT, Valerie Peng <valeriep at openjdk.org> wrote:
>> You mean comparing it with the original value? I tried that but not always the same. For example, a string might be an IA5String at the beginning but becomes a UTF8String after re-encoding.
>
> I see, not surprising, perhaps just checking that it's not empty? Or even that may not hold true?
That should be true. The constructor on bytes ensures either a value is assigned or an exception is thrown. I'll add a check.
-------------
PR: https://git.openjdk.org/jdk/pull/11070
More information about the security-dev
mailing list