Home
last modified time | relevance | path

Searched refs:publicKey (Results 1 – 25 of 26) 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.java5643 case com.android.internal.R.attr.publicKey: in parseVerifier()
5654 final PublicKey publicKey = parsePublicKey(encodedPublicKey); in parseVerifier() local
5655 if (publicKey == null) { in parseVerifier()
5660 return new VerifierInfo(packageName, publicKey); in parseVerifier()
/frameworks/base/telephony/java/android/telephony/
DImsiEncryptionInfo.java42 private final PublicKey publicKey; field in ImsiEncryptionInfo
54 PublicKey publicKey, Date expirationTime) { in ImsiEncryptionInfo() argument
61 this.publicKey = publicKey; in ImsiEncryptionInfo()
70 publicKey = makeKeyObject(b); in ImsiEncryptionInfo()
95 return this.publicKey; in getPublicKey()
133 byte[] b = publicKey.getEncoded(); in writeToParcel()
148 + "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.java634 PublicKey publicKey) throws CertificateParsingException, IOException { in generateSelfSignedCertificate() argument
639 return generateSelfSignedCertificateWithFakeSignature(publicKey); in generateSelfSignedCertificate()
644 privateKey, publicKey, signatureAlgorithm); in generateSelfSignedCertificate()
651 return generateSelfSignedCertificateWithFakeSignature(publicKey); in generateSelfSignedCertificate()
658 … PrivateKey privateKey, PublicKey publicKey, String signatureAlgorithm) throws Exception { in generateSelfSignedCertificateWithValidSignature() argument
660 certGen.setPublicKey(publicKey); in generateSelfSignedCertificateWithValidSignature()
672 PublicKey publicKey) throws IOException, CertificateParsingException { in generateSelfSignedCertificateWithFakeSignature() argument
695 try (ASN1InputStream publicKeyInfoIn = new ASN1InputStream(publicKey.getEncoded())) { in generateSelfSignedCertificateWithFakeSignature()
/frameworks/opt/net/ike/src/java/com/android/ike/ikev2/message/
DIkeKePayload.java183 DHPublicKey publicKey = (DHPublicKey) keyPair.getPublic(); in IkeKePayload() local
187 BigIntegerUtils.bigIntegerToUnsignedByteArray(publicKey.getY(), keySize); in IkeKePayload()
240 DHPublicKey publicKey = (DHPublicKey) dhKeyFactory.generatePublic(publicKeySpec); in getSharedKey() local
247 dhKeyAgreement.doPhase(publicKey, true/** Last phase */); in getSharedKey()
/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/base/core/java/android/debug/
DIAdbManager.aidl33 void allowDebugging(boolean alwaysAllow, String publicKey); in allowDebugging() argument
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierKeyDownloadMgrTest.java115 java.security.PublicKey publicKey = null; in testExpirationDate1Day() local
125 "keyIdentifier", publicKey, date); in testExpirationDate1Day()
138 java.security.PublicKey publicKey = null; in testExpirationDate7Day() local
151 "keyIdentifier", publicKey, date); in testExpirationDate7Day()
/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/core/java/com/android/server/adb/
DAdbService.java237 public void allowDebugging(boolean alwaysAllow, String publicKey) { in allowDebugging() argument
240 mDebuggingManager.allowDebugging(alwaysAllow, publicKey); in allowDebugging()
DAdbDebuggingManager.java733 public void allowDebugging(boolean alwaysAllow, String publicKey) { in allowDebugging() argument
736 msg.obj = publicKey; in allowDebugging()
/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.java595 public void savePublicKey(PublicKey publicKey, int type, String identifier, long expirationDate, in savePublicKey() argument
598 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()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java14158 final PublicKey publicKey = verifierSig.getPublicKey();
14159 expectedPublicKey = publicKey.getEncoded();
14164 final byte[] actualPublicKey = verifierInfo.publicKey.getEncoded();
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt17472 Landroid/content/pm/VerifierInfo;->publicKey:Ljava/security/PublicKey;
73178 Landroid/telephony/ImsiEncryptionInfo;->publicKey:Ljava/security/PublicKey;
97147 Lcom/android/internal/R$attr;->publicKey:I
112955 Ljava/security/Identity;->publicKey:Ljava/security/PublicKey;
112969 Ljava/security/KeyPair;->publicKey:Ljava/security/PublicKey;
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt975 field public static final int publicKey = 16843686; // 0x10103a6

12