Lines Matching refs:header
70 The implementation environment defined in the "zip.h" header should
152 * Initialize the encryption keys and the random header according to
172 * Write encryption header to file zfile using the password passwd
178 FILE *zfile; /* where to write header */
180 int n; /* index in random header */
184 uch header[RAND_HEAD_LEN-2]; /* random header */
185 static unsigned calls = 0; /* ensure different random header each time */
197 header[n] = (uch)zencode(c, t);
199 /* Encrypt random header (last two bytes is high word of crc) */
202 ztemp = zencode(header[n], t);
230 /* Set encrypted bit, clear extended local header bit and write local
231 header to output file */
240 /* Initialize keys with password and write random header */
243 /* Skip local header in input file */
257 /* Skip extended local header in input file if there is one */
277 int r; /* size of encryption header */
281 /* Save position and skip local header in input file */
290 /* Decrypt encryption header, save last two bytes */
303 /* If last two bytes of header don't match crc (or file time in the
304 * case of an extended local header), back up and just copy. For
321 /* Clear encrypted bit and local header bit, and write local header to
339 /* Skip extended local header in input file if there is one */
396 /* get header once (turn off "encrypted" flag temporarily so we don't
519 ZCONST uch *h; /* decrypted header */
528 uch hh[RAND_HEAD_LEN]; /* decrypted header */
530 /* set keys and save the encrypted header */