Updates, improvements
authorRick van Rein <rick@openfortress.nl>
Mon, 22 Feb 2016 10:28:45 +0000 (10:28 +0000)
committerRick van Rein <rick@openfortress.nl>
Mon, 22 Feb 2016 10:28:45 +0000 (10:28 +0000)
WHEN-SIZE-MATTERS.MD
test/krb5ticket.c

index fd2f1c6..e38cfff 100644 (file)
@@ -74,9 +74,16 @@ Here is the count for der_unpack()ing a few standard structures:
 
   * 16 dercursor values for a PKIX Certificate
   * 03 dercursor values for a PKIX Certificate Extension
-  * 07 dercursor values for a Kerberos5 Ticket's unencrypted part
+  * 07 dercursor values for a Kerberos5 Ticket
   * 14 dercursor values for a Kerberos5 Ticket's EncTicketPart
 
+Oh, and the walking paths that instruct the parser are very small too:
+
+  * 46 bytes for a PKIX Certificate
+  * 07 bytes for a PKIX Certificate Extension
+  * 33 bytes for a Kerberos5 Ticket
+  * 55 bytes for a Kerberos5 Ticket's EncTicketPart
+
 Quite humble, isn't it?
 
 
@@ -99,7 +106,7 @@ nesting depth while running der_unpack() over some standard structures:
 
   * 4 nesting levels for a PKIX Certificate
   * 1 nesting levels for a PKIX Certificate Extension
-  * 4 nesting levels for a Kerberos5 Ticket's unencrypted part
+  * 5 nesting levels for a Kerberos5 Ticket's unencrypted part
   * 5 nesting levels for a Kerberos5 Ticket's EncTicketPart
 
 The reason that Kerberos is using a few more nesting levels is that it uses
index 901248f..6a41ed0 100644 (file)
@@ -63,6 +63,7 @@
  */
 
 derwalk pack_Ticket [] = {
+       DER_PACK_ENTER | DER_TAG_APPLICATION (1),       // Ticket [APPLICATION 1]
        DER_PACK_ENTER | DER_TAG_SEQUENCE,              // Ticket
        DER_PACK_ENTER | DER_TAG_CONTEXT (0),           // [0] tkt-vno
        DER_PACK_STORE | DER_TAG_INTEGER,               // tkt-vno (5)
@@ -93,6 +94,7 @@ derwalk pack_Ticket [] = {
        DER_PACK_LEAVE,                                 // enc-part
        DER_PACK_LEAVE,                                 // [3] enc-part
        DER_PACK_LEAVE,                                 // Ticket
+       DER_PACK_LEAVE,                                 // Ticket [APPLICATION 1]
        DER_PACK_END
 };