Searched refs:Utils (Results 1 – 7 of 7) sorted by relevance
/system/extras/verity/ |
D | VeritySigner.java | 42 byte[] content = Utils.read(args[0]); in main() 45 X509Certificate cert = Utils.loadPEMCertificate(args[1]); in main() 48 byte[] signature = Utils.read(args[2]); in main() 51 if (Utils.verify(publicKey, content, signature, in main() 52 Utils.getSignatureAlgorithmIdentifier(publicKey))) { in main() 64 PrivateKey privateKey = Utils.loadDERPrivateKey(Utils.read(args[1])); in main() 65 byte[] signature = Utils.sign(privateKey, content); in main() 66 Utils.write(signature, args[2]); in main()
|
D | KeystoreSigner.java | 70 this.algorithmIdentifier = Utils.getSignatureAlgorithmIdentifier(key); in BootKey() 100 PublicKey pubkey = Utils.loadDERPublicKey(der); in addPublicKey() 145 return Utils.verify(signature.getPublicKey(), innerKeystore, in verify() 151 byte[] rawSignature = Utils.sign(privateKey, innerKeystore); in sign() 155 Utils.getSignatureAlgorithmIdentifier(privateKey)); in sign() 179 ks.parse(Utils.read(args[1])); in main() 197 ks.setCertificate(Utils.loadPEMCertificate(certFname)); in main() 200 ks.addPublicKey(Utils.read(args[i])); in main() 203 ks.sign(Utils.loadDERPrivateKeyFromFile(privkeyFname)); in main() 204 Utils.write(ks.getEncoded(), outfileFname); in main()
|
D | BootSignature.java | 165 return Utils.sign(key, signable); in sign() 174 return Utils.verify(publicKey, signable, signature.getOctets(), in verify() 226 byte[] image = Utils.read(imagePath); in doSignature() 240 X509Certificate cert = Utils.loadPEMCertificate(certPath); in doSignature() 243 PrivateKey key = Utils.loadDERPrivateKeyFromFile(keyPath); in doSignature() 245 Utils.getSignatureAlgorithmIdentifier(key)); in doSignature() 253 Utils.write(image_with_metadata, outPath); in doSignature() 257 byte[] image = Utils.read(imagePath); in verifySignature()
|
D | Android.mk | 23 LOCAL_SRC_FILES := VerityVerifier.java Utils.java 31 LOCAL_SRC_FILES := VeritySigner.java Utils.java 39 LOCAL_SRC_FILES := BootSignature.java VeritySigner.java Utils.java 47 LOCAL_SRC_FILES := BootSignature.java KeystoreSigner.java Utils.java
|
D | VerityVerifier.java | 301 return Utils.verify(key, table, signature, in verifyMetaData() 302 Utils.getSignatureAlgorithmIdentifier(key)); in verifyMetaData() 399 X509Certificate cert = Utils.loadPEMCertificate(args[1]); in main()
|
D | Utils.java | 60 public class Utils { class
|
/system/vold/ |
D | Android.mk | 26 Utils.cpp \
|