[ RFC Index | RFC Search | Usenet FAQs | Web FAQs | Documents | Cities ]

    Search the Archives
Display RFC by number
    


RFC 1319: On "Checksum block" of "3.2 Step 2. Append Checksum", it is...

<< Back to: RFC 1319

 
Reader comments:
 

Comment by Bernard Chong
Submitted on 2/25/2004
Related RFC: RFC 1319
Rating: Not yet rated Rate this comment: Vote
On "Checksum block" of "3.2 Step 2. Append Checksum", it is like following.         /* Checksum block i. */         For j = 0 to 15 do            Set c to M[i*16+j].            Set C[j] to S[c xor L].  // <--- This is the probable error line            Set L to C[j].          end /* of loop on j */       end /* of loop on i */ On the actual code of C, it is like following t = checksum[15]; for (i = 0; i < 16; i++)    t = checksum[i] ^= PI_SUBST[block[i] ^ t]; "^=" should be "=" according to "3.2 Step 2" Since, C code is wide-spread, I guess C code is the correct one. Therefore, "Checksum block" of "3.2 Step 2. Append Checksum" should be changed like following.         /* Checksum block i. */         For j = 0 to 15 do            Set c to M[i*16+j].            Set C[j] to (C[j] xor S[c xor L]).            Set L to C[j].          end /* of loop on j */       end /* of loop on i */

 
 
FAQS.ORG makes no guarantees as to the accuracy of the posts. Each post is the personal opinion of the poster. These posts are not intended to substitute for medical, tax, legal, investment, accounting, or other professional advice. FAQS.ORG does not endorse any opinion or any product or service mentioned mentioned in these posts.

<< Back to: RFC 1319


© 2008 FAQS.ORG. All rights reserved.