Lines Matching defs:file
5 * you may not use this file except in compliance with the License.
95 private static X509Certificate readPublicKey(File file)
97 FileInputStream input = new FileInputStream(file);
109 * @param keyFile The file containing the private key. Used to prompt the user.
130 * @param keyFile The file containing the private key
159 private static PrivateKey readPrivateKey(File file)
161 DataInputStream input = new DataInputStream(new FileInputStream(file));
163 byte[] bytes = new byte[(int) file.length()];
166 KeySpec spec = decryptPrivateKey(bytes, file);
181 /** Add the SHA1 of every file to the manifest, creating it if necessary. */
237 * cert can be extracted from the CERT.RSA file but this is much
294 /** Write a .SF file with a digest of the specified manifest. */
334 // if the length of the signature file is a multiple of 1024 bytes.
430 throw new IllegalArgumentException("signature is too big for ZIP file comment");
432 // signature starts this many bytes from the end of the file
436 // Why the 0xff bytes? In a zip file with no archive comment,
437 // bytes [-6:-2] of the file are the little-endian offset from
438 // the start of the file to the central directory. So for the
450 // last such sequence in the file (to avoid minzip finding a
470 * reduce variation in the output file and make incremental OTAs