Home
last modified time | relevance | path

Searched refs:ObliviousHttpKeyConfig (Results 1 – 25 of 33) sorted by relevance

12

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/
DObliviousHttpKeyConfigTest.java50 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 …]
DObliviousHttpClientTest.java55 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()
DObliviousHttpRequestTest.java52 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/
DHpkeAlgorithmSpecTest.java19 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/
DObliviousHttpTestFixtures.java163 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/
DAdSelectionEncryptionKeyManagerTest.java51 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()
DObliviousHttpRequestContextMarshallerTest.java33 import com.android.adservices.ohttp.ObliviousHttpKeyConfig;
104 ObliviousHttpKeyConfig.fromSerializedKeyConfig( in test_insertContext_success()
155 ObliviousHttpKeyConfig.fromSerializedKeyConfig( in test_getContext_success()
DProtectedServersEncryptionConfigManagerTest.java54 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()
DKAnonObliviousHttpEncryptorImplTest.java32 import com.android.adservices.ohttp.ObliviousHttpKeyConfig;
225 private ObliviousHttpKeyConfig getKeyConfig(int keyIdentifier) throws InvalidKeySpecException { in getKeyConfig()
233 return ObliviousHttpKeyConfig.fromSerializedKeyConfig( in getKeyConfig()
DObliviousHttpEncryptorImplTest.java37 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/
DDBEncryptionContextTest.java25 import com.android.adservices.ohttp.ObliviousHttpKeyConfig;
54 ObliviousHttpKeyConfig keyConfig = in testBuildEncryptionContext_success()
55 ObliviousHttpKeyConfig.fromSerializedKeyConfig( in testBuildEncryptionContext_success()
DEncryptionContextDaoTest.java29 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/
DObliviousHttpKeyConfig.java37 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()
DObliviousHttpClient.java49 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()
DObliviousHttpRequestContext.java32 public abstract ObliviousHttpKeyConfig keyConfig(); in keyConfig()
45 ObliviousHttpKeyConfig keyConfig, in create()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/encryption/
DKAnonObliviousHttpEncryptorImpl.java27 import com.android.adservices.ohttp.ObliviousHttpKeyConfig;
89 private byte[] createAndSerializeRequest(ObliviousHttpKeyConfig config, byte[] plainText) { in createAndSerializeRequest()
98 ObliviousHttpKeyConfig.useFledgeAuctionServerMediaTypeChange(JOIN)); in createAndSerializeRequest()
DAdSelectionEncryptionKeyManager.java35 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);
DJoinEncryptionKeyParser.java21 import com.android.adservices.ohttp.ObliviousHttpKeyConfig;
100 public ObliviousHttpKeyConfig getObliviousHttpKeyConfig(AdSelectionEncryptionKey key) in getObliviousHttpKeyConfig()
107 return ObliviousHttpKeyConfig.fromSerializedKeyConfig(key.publicKey()); in getObliviousHttpKeyConfig()
DEncryptionKeyParser.java20 import com.android.adservices.ohttp.ObliviousHttpKeyConfig;
39 ObliviousHttpKeyConfig getObliviousHttpKeyConfig(AdSelectionEncryptionKey key) in getObliviousHttpKeyConfig()
DObliviousHttpEncryptorImpl.java28 import com.android.adservices.ohttp.ObliviousHttpKeyConfig;
106 ObliviousHttpKeyConfig config, byte[] plainText, long contextId) { in createAndSerializeRequest()
116 ObliviousHttpKeyConfig.useFledgeAuctionServerMediaTypeChange(AUCTION)); in createAndSerializeRequest()
DAuctionEncryptionKeyParser.java24 import com.android.adservices.ohttp.ObliviousHttpKeyConfig;
118 public ObliviousHttpKeyConfig getObliviousHttpKeyConfig(AdSelectionEncryptionKey key) in getObliviousHttpKeyConfig()
125 return ObliviousHttpKeyConfig.builder() in getObliviousHttpKeyConfig()
DObliviousHttpRequestContextMarshaller.java26 import com.android.adservices.ohttp.ObliviousHttpKeyConfig;
66 ObliviousHttpKeyConfig.fromSerializedKeyConfig(dbEncryptionContext.getKeyConfig()), in getAuctionOblivioushttpRequestContext()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/adselection/
DObliviousHttpEncryptorWithSeedImpl.java29 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/
DHpkeAlgorithmSpec.java19 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/
DEncryptionContextDao.java29 import com.android.adservices.ohttp.ObliviousHttpKeyConfig;
92 ObliviousHttpKeyConfig.fromSerializedKeyConfig( in getEncryptionContextForIdAndKeyType()

12