Skip to content

Instantly share code, notes, and snippets.

@xerub
Last active October 6, 2021 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xerub/35859b471432d45e228b10ccb5e579f1 to your computer and use it in GitHub Desktop.
Save xerub/35859b471432d45e228b10ccb5e579f1 to your computer and use it in GitHub Desktop.
Errata for http://phrack.org/issues/70/12.html#article
--- asn.txt~ 2021-10-04 19:04:37.000000000 +0300
+++ asn.txt 2021-10-06 21:23:28.000000000 +0300
@@ -125,7 +125,7 @@
bitstrings:
23 is a combination of 0x20 (Constructed) + 0x03 (Bit String)
- 09 is the total length of the components
+ 08 is the total length of the components
03 denotes a bitstring
02 the length of the bitstring in bytes, plus 1
00 number of unused trailing bits at the end of the last byte
@@ -133,7 +133,7 @@
03 denotes a bitstring
02 the length of the bitstring in bytes, plus 1
01 number of unused trailing bits at the end of the last byte
- 42 42 the second part of the actual bitstring
+ 42 the second part of the actual bitstring
The decoder should merge those bitstrings, resulting in: 010000010100001.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment