Lines Matching defs:file

5  * you may not use this file except in compliance with the License.
138 private static X509Certificate readPublicKey(File file)
140 FileInputStream input = new FileInputStream(file);
152 * @param keyFile The file containing the private key. Used to prompt the user.
173 * @param keyFile The file containing the private key
202 private static PrivateKey readPrivateKey(File file)
204 DataInputStream input = new DataInputStream(new FileInputStream(file));
206 byte[] bytes = new byte[(int) file.length()];
209 KeySpec spec = decryptPrivateKey(bytes, file);
225 * Add the hash(es) of every file to the manifest, creating it if
295 * cert can be extracted from the CERT.RSA file but this is much
353 /** Write a .SF file with a digest of the specified manifest. */
395 // if the length of the signature file is a multiple of 1024 bytes.
438 * reduce variation in the output file and make incremental OTAs
509 // write to both output streams. out is the CMSTypedData signer and tee is the file.
522 // write to both output streams. out is the CMSTypedData signer and tee is the file.
631 throw new IllegalArgumentException("signature is too big for ZIP file comment");
633 // signature starts this many bytes from the end of the file
637 // Why the 0xff bytes? In a zip file with no archive comment,
638 // bytes [-6:-2] of the file are the little-endian offset from
639 // the start of the file to the central directory. So for the
651 // last such sequence in the file (to avoid minzip finding a
752 // Set the ZIP file timestamp to the starting valid time