Home
last modified time | relevance | path

Searched refs:publicKey (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/core/java/android/content/pm/
DVerifierInfo.java36 public final PublicKey publicKey; field in VerifierInfo
48 public VerifierInfo(String packageName, PublicKey publicKey) { in VerifierInfo() argument
51 } else if (publicKey == null) { in VerifierInfo()
56 this.publicKey = publicKey; in VerifierInfo()
61 publicKey = (PublicKey) source.readSerializable(); in VerifierInfo()
72 dest.writeSerializable(publicKey); in writeToParcel()
DPackageParser.java5700 case com.android.internal.R.attr.publicKey: in parseVerifier()
5711 final PublicKey publicKey = parsePublicKey(encodedPublicKey); in parseVerifier() local
5712 if (publicKey == null) { in parseVerifier()
5717 return new VerifierInfo(packageName, publicKey); in parseVerifier()
/frameworks/base/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DKeyRevocationList.java67 RevocationStatus getRevocationStatusForKey(String publicKey) { in getRevocationStatusForKey() argument
68 return mEntries.get(publicKey); in getRevocationStatusForKey()
72 boolean isRevoked(String publicKey) { in isRevoked() argument
73 RevocationStatus entry = getRevocationStatusForKey(publicKey); in isRevoked()
78 void addEntry(String publicKey, String status, String reason) { in addEntry() argument
79 mEntries.put(publicKey, new RevocationStatus(status, reason)); in addEntry()
108 String publicKey = entry.getString(JSON_PUBLIC_KEY); in fromJsonString() local
111 list.addEntry(publicKey, status, reason); in fromJsonString()
DInstallationAsyncTask.java150 String publicKey, in InstallationAsyncTask() argument
158 mPublicKey = publicKey; in InstallationAsyncTask()
501 String publicKey = toHexString(avbPublicKey.sha1); in installImage() local
502 if (mKeyRevocationList.isRevoked(publicKey)) { in installImage()
503 imageValidationThrowOrWarning(new KeyRevokedException(publicKey)); in installImage()
DDynamicSystemInstallationService.java278 String publicKey = intent.getStringExtra(KEY_PUBKEY); in executeInstallCommand() local
290 url, dsuSlot, publicKey, systemSize, userdataSize, this, mDynSystem, this); in executeInstallCommand()
/frameworks/base/telephony/java/android/telephony/
DImsiEncryptionInfo.java44 private final PublicKey publicKey; field in ImsiEncryptionInfo
58 PublicKey publicKey, Date expirationTime) { in ImsiEncryptionInfo() argument
65 this.publicKey = publicKey; in ImsiEncryptionInfo()
75 publicKey = makeKeyObject(b); in ImsiEncryptionInfo()
113 return this.publicKey; in getPublicKey()
152 byte[] b = publicKey.getEncoded(); in writeToParcel()
167 + "publicKey=" + publicKey in toString()
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreProvider.java192 PublicKey publicKey; in getAndroidKeyStorePublicKey() local
195 publicKey = keyFactory.generatePublic(new X509EncodedKeySpec(x509EncodedForm)); in getAndroidKeyStorePublicKey()
203 return new AndroidKeyStoreECPublicKey(alias, uid, (ECPublicKey) publicKey); in getAndroidKeyStorePublicKey()
205 return new AndroidKeyStoreRSAPublicKey(alias, uid, (RSAPublicKey) publicKey); in getAndroidKeyStorePublicKey()
214 @NonNull AndroidKeyStorePublicKey publicKey) { in getAndroidKeyStorePrivateKey()
215 String keyAlgorithm = publicKey.getAlgorithm(); in getAndroidKeyStorePrivateKey()
218 publicKey.getAlias(), publicKey.getUid(), ((ECKey) publicKey).getParams()); in getAndroidKeyStorePrivateKey()
221 publicKey.getAlias(), publicKey.getUid(), ((RSAKey) publicKey).getModulus()); in getAndroidKeyStorePrivateKey()
295 AndroidKeyStorePublicKey publicKey = in loadAndroidKeyStoreKeyPairFromKeystore() local
299 AndroidKeyStoreProvider.getAndroidKeyStorePrivateKey(publicKey); in loadAndroidKeyStoreKeyPairFromKeystore()
[all …]
DAndroidKeyStoreSignatureSpiBase.java109 protected final void engineInitVerify(PublicKey publicKey) throws InvalidKeyException { in engineInitVerify() argument
114 if (publicKey == null) { in engineInitVerify()
118 if (publicKey instanceof AndroidKeyStorePublicKey) { in engineInitVerify()
119 keystoreKey = (AndroidKeyStorePublicKey) publicKey; in engineInitVerify()
121 throw new InvalidKeyException("Unsupported public key type: " + publicKey); in engineInitVerify()
DAndroidKeyStoreKeyPairGeneratorSpi.java653 PublicKey publicKey) throws CertificateParsingException, IOException { in generateSelfSignedCertificate() argument
658 return generateSelfSignedCertificateWithFakeSignature(publicKey); in generateSelfSignedCertificate()
663 privateKey, publicKey, signatureAlgorithm); in generateSelfSignedCertificate()
670 return generateSelfSignedCertificateWithFakeSignature(publicKey); in generateSelfSignedCertificate()
677 … PrivateKey privateKey, PublicKey publicKey, String signatureAlgorithm) throws Exception { in generateSelfSignedCertificateWithValidSignature() argument
679 certGen.setPublicKey(publicKey); in generateSelfSignedCertificateWithValidSignature()
691 PublicKey publicKey) throws IOException, CertificateParsingException { in generateSelfSignedCertificateWithFakeSignature() argument
714 try (ASN1InputStream publicKeyInfoIn = new ASN1InputStream(publicKey.getEncoded())) { in generateSelfSignedCertificateWithFakeSignature()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtils.java84 PublicKey publicKey, in thmEncryptRecoveryKey() argument
93 /*theirPublicKey=*/ publicKey, in thmEncryptRecoveryKey()
213 PublicKey publicKey, in encryptRecoveryClaim() argument
219 publicKey, in encryptRecoveryClaim()
DKeySyncTask.java218 PublicKey publicKey; in syncKeysForAgent() local
223 publicKey = certPath.getCertificates().get(0).getPublicKey(); in syncKeysForAgent()
226 publicKey = mRecoverableKeyStoreDb.getRecoveryServicePublicKey(mUserId, in syncKeysForAgent()
229 if (publicKey == null) { in syncKeysForAgent()
319 publicKey, in syncKeysForAgent()
327 publicKey, in syncKeysForAgent()
DRecoverableKeyStoreManager.java499 PublicKey publicKey; in startRecoverySession() local
501 publicKey = KeySyncUtils.deserializePublicKey(verifierPublicKey); in startRecoverySession()
508 if (!publicKeysMatch(publicKey, vaultParams)) { in startRecoverySession()
523 publicKey, in startRecoverySession()
976 private boolean publicKeysMatch(PublicKey publicKey, byte[] vaultParams) { in publicKeysMatch() argument
977 byte[] encodedPublicKey = SecureBox.encodePublicKey(publicKey); in publicKeysMatch()
DSecureBox.java382 static byte[] encodePublicKey(PublicKey publicKey) { in encodePublicKey() argument
383 ECPoint point = ((ECPublicKey) publicKey).getW(); in encodePublicKey()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierKeyDownloadMgrTest.java96 java.security.PublicKey publicKey = null; in testExpirationDate1Day() local
106 "keyIdentifier", publicKey, date); in testExpirationDate1Day()
119 java.security.PublicKey publicKey = null; in testExpirationDate7Day() local
132 "keyIdentifier", publicKey, date); in testExpirationDate7Day()
/frameworks/base/identity/java/android/security/identity/
DUtil.java57 static byte[] publicKeyEncodeUncompressedForm(PublicKey publicKey) { in publicKeyEncodeUncompressedForm() argument
58 ECPoint w = ((ECPublicKey) publicKey).getW(); in publicKeyEncodeUncompressedForm()
/frameworks/base/core/java/android/debug/
DIAdbManager.aidl33 void allowDebugging(boolean alwaysAllow, String publicKey); in allowDebugging() argument
/frameworks/base/services/core/java/com/android/server/adb/
DAdbDebuggingManager.java1096 String publicKey = mAdbKeyStore.findKeyFromFingerprint(fingerprint); in handleMessage() local
1097 if (publicKey == null || publicKey.isEmpty()) { in handleMessage()
1101 String cmdStr = MSG_DISCONNECT_DEVICE + publicKey; in handleMessage()
1105 mAdbKeyStore.removeKey(publicKey); in handleMessage()
1112 String publicKey = bundle.getString("publicKey"); in handleMessage() local
1113 onPairingResult(publicKey); in handleMessage()
1340 private void onPairingResult(String publicKey) { in onPairingResult() argument
1341 if (publicKey == null) { in onPairingResult()
1349 String fingerprints = getFingerprints(publicKey); in onPairingResult()
1351 String[] args = publicKey.split("\\s+"); in onPairingResult()
[all …]
DAdbService.java281 public void allowDebugging(boolean alwaysAllow, @NonNull String publicKey) { in allowDebugging() argument
283 Preconditions.checkStringNotEmpty(publicKey); in allowDebugging()
285 mDebuggingManager.allowDebugging(alwaysAllow, publicKey); in allowDebugging()
/frameworks/base/core/java/android/util/apk/
DApkSignatureSchemeV3Verifier.java289 PublicKey publicKey = in verifySigner() local
293 sig.initVerify(publicKey); in verifySigner()
474 PublicKey publicKey = lastCert.getPublicKey(); in verifyProofOfRotationStruct() local
476 sig.initVerify(publicKey); in verifyProofOfRotationStruct()
DApkSignatureSchemeV2Verifier.java276 PublicKey publicKey = in verifySigner() local
280 sig.initVerify(publicKey); in verifySigner()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DSecureBoxTest.java310 PublicKey publicKey = keyGen.genKeyPair().getPublic(); in encrypt_invalidPublicKey() local
314 () -> SecureBox.encrypt(publicKey, TEST_SHARED_SECRET, TEST_HEADER, TEST_PAYLOAD)); in encrypt_invalidPublicKey()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/
DCertUtilsTest.java233 PublicKey publicKey = keyPairGenerator.generateKeyPair().getPublic(); in verifyRsaSha256Signature_throwsIfWrongKeyType() local
238 publicKey, in verifyRsaSha256Signature_throwsIfWrongKeyType()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierKeyDownloadManager.java580 public void savePublicKey(PublicKey publicKey, int type, String identifier, long expirationDate, in savePublicKey() argument
583 publicKey, new Date(expirationDate)); in savePublicKey()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDb.java463 public long setRecoveryServicePublicKey(int userId, int uid, PublicKey publicKey) { in setRecoveryServicePublicKey() argument
465 publicKey.getEncoded()); in setRecoveryServicePublicKey()
/frameworks/base/tools/aapt/
DCommand.cpp1666 String8 publicKey = AaptXml::getAttribute(tree, PUBLIC_KEY_ATTR, in doDump() local
1668 if (publicKey != "" && error == "") { in doDump()
1671 ResTable::normalizeForOutput(publicKey.string()).string()); in doDump()

12