Home
last modified time | relevance | path

Searched refs:getPublicKey (Results 1 – 25 of 62) sorted by relevance

123

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/
DAdSelectionEncryptionKeyManagerTest.java202 .decode(ENCRYPTION_KEY_JOIN.getPublicKey())); in test_getLatestActiveJoinKey_returnsActiveJoinKey()
228 .getPublicKey() in test_getLatestActiveAuctionKey_returnsActiveAuctionKey()
421 assertThat(actualKeyConfig.getPublicKey()).isEqualTo(expectedPublicKey); in test_getLatestOhttpKeyConfig_refreshFlagOn_withExpiredKey_returnsNewKey()
448 Base64.getDecoder().decode(ENCRYPTION_KEY_AUCTION_TTL_1SECS.getPublicKey()); in test_getLatestOhttpKeyConfig_refreshFlagOff_withExpiredKey_returnsExpiredKey()
453 assertThat(actualKeyConfig.getPublicKey()).isEqualTo(expectedPublicKey); in test_getLatestOhttpKeyConfig_refreshFlagOff_withExpiredKey_returnsExpiredKey()
473 .getPublicKey() in test_getLatestOhttpKeyConfigOfType_typeAuction_returnsLatestKey()
475 assertThat(actualKeyConfig.getPublicKey()).isEqualTo(expectedPublicKey); in test_getLatestOhttpKeyConfigOfType_typeAuction_returnsLatestKey()
497 .getPublicKey() in test_getLatestOhttpKeyConfigOfType_typeAuction_withLogging()
499 assertThat(actualKeyConfig.getPublicKey()).isEqualTo(expectedPublicKey); in test_getLatestOhttpKeyConfigOfType_typeAuction_withLogging()
531 .getPublicKey() in test_getLatestOhttpKeyConfigOfType_withExpiredKey_shouldReturnExpiredKey()
[all …]
DProtectedServersEncryptionConfigManagerTest.java189 .decode(ENCRYPTION_KEY_JOIN_WITH_COORDINATOR.getPublicKey())); in test_getLatestJoinKey_returnsJoinKey()
216 .getPublicKey() in test_getLatestAuctionKey_returnsAuctionKey()
471 .getPublicKey() in test_getLatestOhttpKeyConfigOfType_typeAuction_returnsLatestKey()
473 assertThat(actualKeyConfig.getPublicKey()).isEqualTo(expectedPublicKey); in test_getLatestOhttpKeyConfigOfType_typeAuction_returnsLatestKey()
496 .getPublicKey() in test_getLatestOhttpKeyConfigOfType_typeAuction_withLogging()
498 assertThat(actualKeyConfig.getPublicKey()).isEqualTo(expectedPublicKey); in test_getLatestOhttpKeyConfigOfType_typeAuction_withLogging()
533 assertThat(actualKeyConfig.getPublicKey()).isEqualTo(expectedPublicKey); in test_getLatestOhttpKeyConfigOfType_withNoKeys_returnsLatestKey()
585 assertThat(actualKeyConfig.getPublicKey()).isEqualTo(expectedPublicKey); in test_getLatestOhttpKeyConfig_refreshFlagOn_withExpiredKey_returnsNewKey()
586 assertThat(actualKeyConfig.getPublicKey()).isNotEqualTo(expiredPublicKeyBytes); in test_getLatestOhttpKeyConfig_refreshFlagOn_withExpiredKey_returnsNewKey()
625 assertThat(actualKeyConfig.getPublicKey()).isEqualTo(expectedPublicKey); in test_getLatestOhttpKeyConfig_refreshFlagOff_withExpiredKey_returnsExpiredKey()
[all …]
DAuctionEncryptionKeyParserTest.java91 .getPublicKey() in parseDbEncryptionKey_returnsSuccess()
114 assertThat(keys.get(0).getPublicKey()).isEqualTo(AUCTION_KEY_1.publicKey()); in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
131 assertThat(keys.get(0).getPublicKey()).isEqualTo(AUCTION_KEY_1.publicKey()); in getDbEncryptionKeys_parsesSingleKey()
191 assertThat(keyConfig.getPublicKey()).isEqualTo(keyContent); in getObliviousHttpKeyConfig_convertsKmsKeyIdToOhttpKeyIdCorrectly()
DJoinEncryptionKeyParserTest.java122 assertThat(keys.get(0).getPublicKey()).isEqualTo(JOIN_PUBLIC_KEY_2_BASE_16); in getDbEncryptionKeys_missingMaxAge_usesDefaultAge()
158 assertThat(BaseEncoding.base16().lowerCase().encode(keyConfig.getPublicKey())) in getObliviousHttpKeyConfig_returnsKeyConfig()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiKeyStore.java89 return isHardwareBackedKey(certificate.getPublicKey()); in hasHardwareBackedKey()
414 if (x509Certificate.getPublicKey() instanceof RSAPublicKey) { in getSuiteBCipherFromCert()
415 final RSAPublicKey rsaPublicKey = (RSAPublicKey) x509Certificate.getPublicKey(); in getSuiteBCipherFromCert()
428 if (x509Certificate.getPublicKey() instanceof ECPublicKey) { in getSuiteBCipherFromCert()
429 final ECPublicKey ecPublicKey = (ECPublicKey) x509Certificate.getPublicKey(); in getSuiteBCipherFromCert()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/
DAggregateEncryptionKeyFetcherTest.java98 result.get(0).getPublicKey()); in testBasicAggregateEncryptionKeyRequest()
104 result.get(1).getPublicKey()); in testBasicAggregateEncryptionKeyRequest()
249 result.get(0).getPublicKey()); in testMissingAgeHeader()
254 result.get(1).getPublicKey()); in testMissingAgeHeader()
282 result.get(0).getPublicKey()); in testBrokenAgeHeader()
287 result.get(1).getPublicKey()); in testBrokenAgeHeader()
DAggregateEncryptionKeyTest.java48 assertEquals(PUBLIC_KEY, aggregateEncryptionKey.getPublicKey()); in verifyExample()
DAggregateEncryptionKeyTestUtil.java78 result.append(String.format("publicKey: %s\n", key.getPublicKey())); in prettify()
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/utils/
DX509Utils.java83 PublicKey pubKey = cert.getPublicKey(); in getAndFormatRawPublicKey()
88 ECPublicKey key = (ECPublicKey) cert.getPublicKey(); in getAndFormatRawPublicKey()
155 certificate.verify(certificate.getPublicKey()); in isSelfSignedCertificate()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiQrCode.java103 String getPublicKey() { in getPublicKey() method in WifiQrCode
104 return mUriParserResults.getPublicKey(); in getPublicKey()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DUriParserResultsTest.java90 assertNull(testResultZxing.getPublicKey()); in testGetXXXMethods()
101 assertEquals(testResultDpp.getPublicKey(), TEST_PUBLIC_KEY); in testGetXXXMethods()
DWifiUriParserTest.java62 assertNull(uri.getPublicKey()); in verifyZxParsing()
196 assertEquals(TEST_DPP_PUBLIC_KEY, uri.getPublicKey()); in testDppParsing()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/
DDBProtectedServersEncryptionConfigTest.java53 assertThat(dBEncryptionKey.getPublicKey()).isEqualTo(PUBLIC_KEY_1); in testBuildValidEncryptionKey_success()
71 assertThat(dBEncryptionKey.getPublicKey()).isEqualTo(PUBLIC_KEY_1); in testBuildValidEncryptionKey_rowIdAbsent_success()
DDBEncryptionKeyTest.java52 assertThat(dBEncryptionKey.getPublicKey()).isEqualTo(PUBLIC_KEY_1); in testBuildValidEncryptionKey_success()
/packages/modules/Virtualization/service_vm/test_apk/src/java/com/android/virt/vm_attestation/util/
DX509Utils.java59 rootCert.verify(rootCert.getPublicKey()); in validateCertChain()
139 sig.initVerify(publicKeyCert.getPublicKey()); in verifySignature()
/packages/modules/Connectivity/nearby/tests/cts/fastpair/src/android/nearby/cts/
DPublicCredentialTest.java78 assertThat(Arrays.equals(credential.getPublicKey(), PUBLIC_KEY)).isTrue(); in testBuilder()
103 assertThat(Arrays.equals(credentialFromParcel.getPublicKey(), PUBLIC_KEY)).isTrue(); in testWriteParcel()
/packages/modules/Connectivity/tests/common/java/android/net/nsd/
DNsdServiceInfoTest.java195 assertArrayEquals(original.getPublicKey(), result.getPublicKey()); in checkParcelable()
/packages/modules/Virtualization/compos/aidl/com/android/compos/
DICompOsService.aidl85 byte[] getPublicKey(); in getPublicKey() method
/packages/modules/RemoteKeyProvisioning/app/src/com/android/rkpdapp/database/
DRkpKey.java50 public byte[] getPublicKey() { in getPublicKey() method in RkpKey
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/service/measurement/aggregation/
DAggregateCryptoFixture.java56 public static byte[] getPublicKey() { in getPublicKey() method in AggregateCryptoFixture
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/encryption/
DProtectedServersEncryptionConfigManager.java329 .setPublicKey(key.getPublicKey())
340 .setPublicKey(key.getPublicKey())
DJoinEncryptionKeyParser.java60 BaseEncoding.base16().lowerCase().decode(dbEncryptionKey.getPublicKey())) in parseDbEncryptionKey()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/adselection/
DDBEncryptionKey.java57 public abstract String getPublicKey(); in getPublicKey() method in DBEncryptionKey
DDBProtectedServersEncryptionConfig.java85 public abstract String getPublicKey(); in getPublicKey() method in DBProtectedServersEncryptionConfig
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/measurement/aggregation/
DAggregateEncryptionKey.java82 public String getPublicKey() { in getPublicKey() method in AggregateEncryptionKey

123