/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/ |
D | ObliviousHttpKeyConfigTest.java | 50 ObliviousHttpKeyConfig keyConfig = ObliviousHttpKeyConfig.fromSerializedKeyConfig(bytes); in create_configuresKeyCorrectly() 68 () -> ObliviousHttpKeyConfig.fromSerializedKeyConfig(bytes)); in create_emptyKeyConfig_throwsError() 78 () -> ObliviousHttpKeyConfig.fromSerializedKeyConfig(bytes)); in create_wrongKemIdLength_throwsError() 88 () -> ObliviousHttpKeyConfig.fromSerializedKeyConfig(bytes)); in create_unsupportedKemId_throwsError() 99 () -> ObliviousHttpKeyConfig.fromSerializedKeyConfig(bytes)); in create_wrongPublicKeyLength_throwsError() 110 () -> ObliviousHttpKeyConfig.fromSerializedKeyConfig(bytes)); in create_wrongAlgorithmsLength_throwsError() 122 () -> ObliviousHttpKeyConfig.fromSerializedKeyConfig(bytes)); in create_incompleteAlgorithmsList_throwsError() 132 ObliviousHttpKeyConfig keyConfig = ObliviousHttpKeyConfig.fromSerializedKeyConfig(bytes); in serializeOhttpPayloadHeader_returnsCorrectHeader() 148 ObliviousHttpKeyConfig keyConfig = ObliviousHttpKeyConfig.fromSerializedKeyConfig(bytes); in createRecipientKeyInfoBytes_returnsCorrectInfo() 165 ObliviousHttpKeyConfig keyConfig = ObliviousHttpKeyConfig.fromSerializedKeyConfig(bytes); in createRecipientKeyInfoBytes_returnsCorrectInfo_withServerAuctionMediaTypeChange() [all …]
|
D | ObliviousHttpClientTest.java | 55 ObliviousHttpKeyConfig keyConfig = ObliviousHttpKeyConfig.fromSerializedKeyConfig(bytes); in create_unsupportedAlgorithms_throwsError() 219 ObliviousHttpKeyConfig keyConfig = in decryptObliviousHttpResponse_withAuctionResult() 220 ObliviousHttpKeyConfig.fromSerializedKeyConfig( in decryptObliviousHttpResponse_withAuctionResult() 263 ObliviousHttpKeyConfig keyConfig = in decryptObliviousHttpResponse_withAuctionResult_withServerAuctionMediaTypeChange() 264 ObliviousHttpKeyConfig.fromSerializedKeyConfig( in decryptObliviousHttpResponse_withAuctionResult_withServerAuctionMediaTypeChange()
|
D | ObliviousHttpRequestTest.java | 52 ObliviousHttpKeyConfig keyConfig = in serialize_serializesCorrectly() 53 ObliviousHttpKeyConfig.fromSerializedKeyConfig(keyConfigBytes); in serialize_serializesCorrectly() 63 ObliviousHttpKeyConfig.useFledgeAuctionServerMediaTypeChange(AUCTION)); in serialize_serializesCorrectly()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/algorithms/ |
D | HpkeAlgorithmSpecTest.java | 19 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 37 ObliviousHttpKeyConfig keyConfig = ObliviousHttpKeyConfig.fromSerializedKeyConfig(bytes); in fromKeyConfig_createsHpkeAlgorithmSpec() 52 ObliviousHttpKeyConfig keyConfig = ObliviousHttpKeyConfig.fromSerializedKeyConfig(bytes); in fromKeyConfig_unsupportedKdf_throwsError() 65 ObliviousHttpKeyConfig keyConfig = ObliviousHttpKeyConfig.fromSerializedKeyConfig(bytes); in fromKeyConfig_unsupportedAead_throwsError()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/com/android/adservices/ohttp/ |
D | ObliviousHttpTestFixtures.java | 163 public ObliviousHttpKeyConfig keyConfig; 173 ObliviousHttpKeyConfig keyConfig) { in OhttpTestVector() 185 private static ObliviousHttpKeyConfig getKeyConfig(int keyIdentifier) in getKeyConfig() 194 return ObliviousHttpKeyConfig.fromSerializedKeyConfig( in getKeyConfig()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/ |
D | AdSelectionEncryptionKeyManagerTest.java | 51 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 405 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestOhttpKeyConfig_refreshFlagOn_withExpiredKey_returnsNewKey() 438 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestOhttpKeyConfig_refreshFlagOff_withExpiredKey_returnsExpiredKey() 460 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestOhttpKeyConfigOfType_typeAuction_returnsLatestKey() 484 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestOhttpKeyConfigOfType_typeAuction_withLogging() 518 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestOhttpKeyConfigOfType_withExpiredKey_shouldReturnExpiredKey() 543 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestOhttpKeyConfigOfType_withExpiredKey_withLogging() 585 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestActiveOhttpKeyConfig_withExpiredKey_shouldFetchAndPersistAndReturnNewKey() 618 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestActiveOhttpKeyConfigOfType_withNoKey_shouldFetchPersistAndReturnNewKey() 641 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestActiveOhttpKeyConfigOfType_withActiveAndExpiredKey_shouldGetActiveKey()
|
D | ObliviousHttpRequestContextMarshallerTest.java | 33 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 104 ObliviousHttpKeyConfig.fromSerializedKeyConfig( in test_insertContext_success() 155 ObliviousHttpKeyConfig.fromSerializedKeyConfig( in test_getContext_success()
|
D | ProtectedServersEncryptionConfigManagerTest.java | 54 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 458 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestOhttpKeyConfigOfType_typeAuction_returnsLatestKey() 483 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestOhttpKeyConfigOfType_typeAuction_withLogging() 521 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestOhttpKeyConfigOfType_withNoKeys_returnsLatestKey() 572 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestOhttpKeyConfig_refreshFlagOn_withExpiredKey_returnsNewKey() 614 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestOhttpKeyConfig_refreshFlagOff_withExpiredKey_returnsExpiredKey() 640 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestOhttpKeyConfigOfType_withNoKeys_persistsToDatabase() 682 ObliviousHttpKeyConfig actualKeyConfig = in test_getLatestOhttpKeyConfigOfType_nullCoordinator_returnsDefaultKey()
|
D | KAnonObliviousHttpEncryptorImplTest.java | 32 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 225 private ObliviousHttpKeyConfig getKeyConfig(int keyIdentifier) throws InvalidKeySpecException { in getKeyConfig() 233 return ObliviousHttpKeyConfig.fromSerializedKeyConfig( in getKeyConfig()
|
D | ObliviousHttpEncryptorImplTest.java | 37 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 235 private ObliviousHttpKeyConfig getKeyConfig(int keyIdentifier) throws InvalidKeySpecException { in getKeyConfig() 243 return ObliviousHttpKeyConfig.fromSerializedKeyConfig( in getKeyConfig()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | DBEncryptionContextTest.java | 25 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 54 ObliviousHttpKeyConfig keyConfig = in testBuildEncryptionContext_success() 55 ObliviousHttpKeyConfig.fromSerializedKeyConfig( in testBuildEncryptionContext_success()
|
D | EncryptionContextDaoTest.java | 29 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 66 private ObliviousHttpKeyConfig mObliviousHttpKeyConfig; 78 mObliviousHttpKeyConfig = ObliviousHttpKeyConfig.fromSerializedKeyConfig(KEY_CONFIG_BYTES); in setup()
|
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/ |
D | ObliviousHttpKeyConfig.java | 37 public abstract class ObliviousHttpKeyConfig { class 123 public static ObliviousHttpKeyConfig fromSerializedKeyConfig(byte[] keyConfig) in fromSerializedKeyConfig() 271 public static ObliviousHttpKeyConfig.Builder builder() { in builder() 295 public abstract ObliviousHttpKeyConfig build(); in build()
|
D | ObliviousHttpClient.java | 49 private ObliviousHttpKeyConfig mObliviousHttpKeyConfig; 52 private ObliviousHttpClient(ObliviousHttpKeyConfig keyConfig, HpkeAlgorithmSpec algorithmSpec) { in ObliviousHttpClient() 63 public static ObliviousHttpClient create(ObliviousHttpKeyConfig keyConfig) in create() 207 ObliviousHttpKeyConfig.getOhttpResponseLabel(requestContext.hasMediaTypeChanged()) in export()
|
D | ObliviousHttpRequestContext.java | 32 public abstract ObliviousHttpKeyConfig keyConfig(); in keyConfig() 45 ObliviousHttpKeyConfig keyConfig, in create()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/encryption/ |
D | KAnonObliviousHttpEncryptorImpl.java | 27 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 89 private byte[] createAndSerializeRequest(ObliviousHttpKeyConfig config, byte[] plainText) { in createAndSerializeRequest() 98 ObliviousHttpKeyConfig.useFledgeAuctionServerMediaTypeChange(JOIN)); in createAndSerializeRequest()
|
D | AdSelectionEncryptionKeyManager.java | 35 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 107 public FluentFuture<ObliviousHttpKeyConfig> getLatestActiveOhttpKeyConfigOfType( in getLatestActiveOhttpKeyConfigOfType() 143 public FluentFuture<ObliviousHttpKeyConfig> getLatestOhttpKeyConfigOfType( 184 private FluentFuture<ObliviousHttpKeyConfig> getLatestOhttpKeyConfigOfType( 207 ObliviousHttpKeyConfig configKey = getOhttpKeyConfigForKey(key);
|
D | JoinEncryptionKeyParser.java | 21 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 100 public ObliviousHttpKeyConfig getObliviousHttpKeyConfig(AdSelectionEncryptionKey key) in getObliviousHttpKeyConfig() 107 return ObliviousHttpKeyConfig.fromSerializedKeyConfig(key.publicKey()); in getObliviousHttpKeyConfig()
|
D | EncryptionKeyParser.java | 20 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 39 ObliviousHttpKeyConfig getObliviousHttpKeyConfig(AdSelectionEncryptionKey key) in getObliviousHttpKeyConfig()
|
D | ObliviousHttpEncryptorImpl.java | 28 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 106 ObliviousHttpKeyConfig config, byte[] plainText, long contextId) { in createAndSerializeRequest() 116 ObliviousHttpKeyConfig.useFledgeAuctionServerMediaTypeChange(AUCTION)); in createAndSerializeRequest()
|
D | AuctionEncryptionKeyParser.java | 24 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 118 public ObliviousHttpKeyConfig getObliviousHttpKeyConfig(AdSelectionEncryptionKey key) in getObliviousHttpKeyConfig() 125 return ObliviousHttpKeyConfig.builder() in getObliviousHttpKeyConfig()
|
D | ObliviousHttpRequestContextMarshaller.java | 26 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 66 ObliviousHttpKeyConfig.fromSerializedKeyConfig(dbEncryptionContext.getKeyConfig()), in getAuctionOblivioushttpRequestContext()
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/ |
D | ObliviousHttpEncryptorWithSeedImpl.java | 29 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 107 ObliviousHttpKeyConfig config, byte[] plainText, long contextId) { in createAndSerializeRequestWithSeed() 117 ObliviousHttpKeyConfig.useFledgeAuctionServerMediaTypeChange(AUCTION)); in createAndSerializeRequestWithSeed()
|
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/algorithms/ |
D | HpkeAlgorithmSpec.java | 19 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 47 public static HpkeAlgorithmSpec fromKeyConfig(ObliviousHttpKeyConfig obliviousHttpKeyConfig) in fromKeyConfig()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/adselection/ |
D | EncryptionContextDao.java | 29 import com.android.adservices.ohttp.ObliviousHttpKeyConfig; 92 ObliviousHttpKeyConfig.fromSerializedKeyConfig( in getEncryptionContextForIdAndKeyType()
|