Changeset 582
- Timestamp:
- 08/15/08 17:24:21
- Files:
-
- openpgpsdk/trunk/src/lib/packet-parse.c (modified) (2 diffs)
- openpgpsdk/trunk/src/lib/writer_encrypt_se_ip.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openpgpsdk/trunk/src/lib/packet-parse.c
r574 r582 2566 2566 mdc_hash=mdc+2; 2567 2567 2568 #ifdef DEBUG 2568 2569 if (debug) 2569 2570 { … … 2580 2581 fprintf(stderr,"\n"); 2581 2582 } 2583 #endif /*DEBUG*/ 2582 2584 2583 2585 ops_calc_mdc_hash(preamble,sz_preamble,plaintext,sz_plaintext,&hashed[0]); 2584 /*2585 unsigned char c[0];2586 2587 hash.add(&hash, plaintext, sz_plaintext);2588 c[0]=0xD3;2589 hash.add(&hash,&c[0],1); // MDC packet tag2590 c[0]=0x14;2591 hash.add(&hash,&c[0],1); // MDC packet len2592 2593 hash.finish(&hash,&hashed[0]);2594 */2595 2586 2596 2587 if (memcmp(mdc_hash,hashed,OPS_SHA1_HASH_SIZE)) openpgpsdk/trunk/src/lib/writer_encrypt_se_ip.c
r574 r582 213 213 ops_writer_push_encrypt_crypt(cinfo, crypt); 214 214 215 #ifdef DEBUG 215 216 if (debug) 216 217 { 217 218 fprintf(stderr,"writing %ld + %d + %ld\n", sz_preamble, len, ops_memory_get_length(mem_mdc)); 218 219 } 220 #endif /*DEBUG*/ 219 221 220 222 if (!ops_write(preamble, sz_preamble,cinfo)
