From 8c969679b0763d0a6422b48bbce252de59a9a01d Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Mon, 7 May 2001 10:41:38 +0000 Subject: [PATCH] updates. --- lib/silccore/id.h | 2 +- lib/silccore/silcpacket.c | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/silccore/id.h b/lib/silccore/id.h index 6a1034df..349f6515 100644 --- a/lib/silccore/id.h +++ b/lib/silccore/id.h @@ -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; diff --git a/lib/silccore/silcpacket.c b/lib/silccore/silcpacket.c index caa26ca2..b19f2a9d 100644 --- a/lib/silccore/silcpacket.c +++ b/lib/silccore/silcpacket.c @@ -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. */ -- 2.24.0