Home
last modified time | relevance | path

Searched refs:Utils (Results 1 – 6 of 6) sorted by relevance

/system/extras/verity/
DVeritySigner.java42 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()
DBootSignature.java166 return Utils.sign(key, signable); in sign()
175 return Utils.verify(publicKey, signable, signature.getOctets(), in verify()
227 byte[] image = Utils.read(imagePath); in doSignature()
241 X509Certificate cert = Utils.loadPEMCertificate(certPath); in doSignature()
244 PrivateKey key = Utils.loadDERPrivateKeyFromFile(keyPath); in doSignature()
246 Utils.getSignatureAlgorithmIdentifier(key)); in doSignature()
254 Utils.write(image_with_metadata, outPath); in doSignature()
258 byte[] image = Utils.read(imagePath); in verifySignature()
270 bootsig.setCertificate(Utils.loadPEMCertificate(certPath)); in verifySignature()
DAndroid.mk25 LOCAL_SRC_FILES := VeritySigner.java Utils.java
33 LOCAL_SRC_FILES := BootSignature.java VeritySigner.java Utils.java
DUtils.java60 public class Utils { class
/system/bt/utils/
DAndroid.bp1 // Utils static library for target
/system/vold/
DAndroid.mk26 Utils.cpp \