Lines Matching refs:header
67 The implementation environment defined in the "zip.h" header should
149 * Initialize the encryption keys and the random header according to
169 * Write encryption header to file zfile using the password passwd
175 FILE *zfile; /* where to write header */
177 int n; /* index in random header */
181 uch header[RAND_HEAD_LEN-2]; /* random header */
182 static unsigned calls = 0; /* ensure different random header each time */
194 header[n] = (uch)zencode(c, t);
196 /* Encrypt random header (last two bytes is high word of crc) */
199 ztemp = zencode(header[n], t);
227 /* Set encrypted bit, clear extended local header bit and write local
228 header to output file */
237 /* Initialize keys with password and write random header */
240 /* Skip local header in input file */
254 /* Skip extended local header in input file if there is one */
274 int r; /* size of encryption header */
278 /* Save position and skip local header in input file */
287 /* Decrypt encryption header, save last two bytes */
300 /* If last two bytes of header don't match crc (or file time in the
301 * case of an extended local header), back up and just copy. For
318 /* Clear encrypted bit and local header bit, and write local header to
336 /* Skip extended local header in input file if there is one */
393 /* get header once (turn off "encrypted" flag temporarily so we don't
516 ZCONST uch *h; /* decrypted header */
525 uch hh[RAND_HEAD_LEN]; /* decrypted header */
527 /* set keys and save the encrypted header */