Home
last modified time | relevance | path

Searched refs:der (Results 1 – 2 of 2) sorted by relevance

/system/extras/verity/
DUtils.java165 static PrivateKey loadDERPrivateKey(byte[] der) throws Exception { in loadDERPrivateKey() argument
166 PKCS8EncodedKeySpec spec = decryptPrivateKey(der); in loadDERPrivateKey()
169 spec = new PKCS8EncodedKeySpec(der); in loadDERPrivateKey()
180 byte[] der = pemToDer(new String(pem)); in loadPEMPrivateKey()
181 return loadDERPrivateKey(der); in loadPEMPrivateKey()
192 static PublicKey loadDERPublicKey(byte[] der) throws Exception { in loadDERPublicKey() argument
193 X509EncodedKeySpec publicKeySpec = new X509EncodedKeySpec(der); in loadDERPublicKey()
199 byte[] der = pemToDer(new String(pem)); in loadPEMPublicKey()
200 X509EncodedKeySpec publicKeySpec = new X509EncodedKeySpec(der); in loadPEMPublicKey()
DKeystoreSigner.java99 public void addPublicKey(byte[] der) throws Exception { in addPublicKey() argument
100 PublicKey pubkey = Utils.loadDERPublicKey(der); in addPublicKey()