RFR: 8252523: Add ASN1 Formatter to work with HexPrinter [v2]
Roger Riggs
rriggs at openjdk.java.net
Tue Sep 29 14:52:07 UTC 2020
On Tue, 29 Sep 2020 14:27:29 GMT, Weijun Wang <weijun at openjdk.org> wrote:
>> Are there any other comments or suggestions?
>
> Can you post an example output of that cert? What about indefinite length? (Ex: 0x24, (byte) 0x80, 4, 2, 'a', 'b', 4,
> 2, 'c', 'd', 0, 0)
For your example the output is:
0000: 24 80 ; UNIVERSAL CONSTRUCTED OCTET STRING [INDEFINITE]
0002: 04 02 61 62 ; OCTET STRING [2] 'ab'
0006: 04 02 63 64 ; OCTET STRING [2] 'cd'
000a: 00 00 ; END-OF-CONTENT ```
It seems to have lost an indent, I'll take a look at that.
-------------
PR: https://git.openjdk.java.net/jdk/pull/268
More information about the core-libs-dev
mailing list