updates.
authorPekka Riikonen <priikone@silcnet.org>
Mon, 7 May 2001 10:41:38 +0000 (10:41 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Mon, 7 May 2001 10:41:38 +0000 (10:41 +0000)
lib/silccore/id.h
lib/silccore/silcpacket.c

index 6a1034dffd612204bde3ccdd4e78a260f3d759fd..349f65150eafb928259026c07b73ba90c57ffda3 100644 (file)
@@ -52,7 +52,7 @@ typedef uint16 SilcIdType;
    ID depends of the length of the IP address.
 */
 typedef struct {
-  unsigned char data[16];      /* IP data */
+  unsigned char data[16];      /* IP data (in MSB first order) */
   uint8 data_len;              /* Length of the data (4 or 16) */
 } SilcIDIP;
 
index caa26ca25bb624c749c92148c74348300d820656..b19f2a9d70278a446c77c713f555976cdb4df18b 100644 (file)
@@ -162,23 +162,23 @@ void silc_packet_encrypt(SilcCipher cipher, SilcHmac hmac,
 
    Packet construct is as follows (* = won't be encrypted):
 
-   x bytes       SILC Header
+   n bytes       SILC Header
       2 bytes     Payload length  (*)
       1 byte      Flags
       1 byte      Packet type
-      1 byte      Source ID Type
       2 bytes     Source ID Length
-      x bytes     Source ID
-      1 byte      Destination ID Type
       2 bytes     Destination ID Length
-      x bytes     Destination ID
+      1 byte      Source ID Type
+      n bytes     Source ID
+      1 byte      Destination ID Type
+      n bytes     Destination ID
 
    1 - 16 bytes    Padding
 
-   x bytes        Data payload
+   n bytes        Data payload
 
    All fields in the packet will be authenticated by MAC. The MAC is
-   not computed here, it must be computed differently before encrypting
+   not computed here, it must be computed separately before encrypting
    the packet.
 
 */