Home
last modified time | relevance | path

Searched refs:aeadId (Results 1 – 8 of 8) sorted by relevance

/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/
DObliviousHttpKeyConfig.java67 public abstract int aeadId(); in aeadId() method in ObliviousHttpKeyConfig
154 int aeadId = writeUptoTwoBytesIntoInteger(keyConfig, currentIndex, sAeadIdSizeInBytes); in fromSerializedKeyConfig() local
160 .setAeadId(aeadId) in fromSerializedKeyConfig()
185 copyTwoBytesFromInteger(aeadId(), header, 5); in serializeOhttpPayloadHeader()
265 copyTwoBytesFromInteger(aeadId(), serializedArray, currentIndex); in serializeKeyConfigToBytes()
289 public abstract Builder setAeadId(int aeadId); in setAeadId() argument
DObliviousHttpGateway.java311 int aeadId = ((cipherText[5] & 0xff) << 8) | (cipherText[6] & 0xff); in getAead() local
312 return AeadAlgorithmSpec.get(aeadId); in getAead()
342 int keyId, int kemId, int kdfId, int aeadId, boolean isMediaTypeChanged) in createRecipientKeyInfo() argument
356 dataOutputStream.writeShort(aeadId); in createRecipientKeyInfo()
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/algorithms/
DHpkeAlgorithmSpec.java51 AeadAlgorithmSpec aead = AeadAlgorithmSpec.get(obliviousHttpKeyConfig.aeadId()); in fromKeyConfig()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/
DJoinEncryptionKeyParserTest.java162 assertThat(keyConfig.aeadId()).isEqualTo(0x0001); in getObliviousHttpKeyConfig_returnsKeyConfig()
DAuctionEncryptionKeyParserTest.java194 assertThat(keyConfig.aeadId()).isEqualTo(0x0022); in getObliviousHttpKeyConfig_convertsKmsKeyIdToOhttpKeyIdCorrectly()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/
DObliviousHttpKeyConfigTest.java58 Assert.assertEquals(keyConfig.aeadId(), 0X0001); in create_configuresKeyCorrectly()
DObliviousHttpClientTest.java97 testVector.keyConfig.aeadId()); in create_supportedAlgorithms_aeadIdSetCorrectly()
DOhttpJniWrapperTest.java822 int aeadId = 0x0002; in createRecipientKeyInfoBytes() local
831 header[6] = (byte) aeadId; in createRecipientKeyInfoBytes()