Home
last modified time | relevance | path

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

/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/
DObliviousHttpKeyConfig.java53 public abstract int kemId(); in kemId() method in ObliviousHttpKeyConfig
132 int kemId = writeUptoTwoBytesIntoInteger(keyConfig, currentIndex, sKemIdSizeInBytes); in fromSerializedKeyConfig() local
135 int publicKeyLength = getPublicKeyLengthInBytes(kemId); in fromSerializedKeyConfig()
158 .setKemId(kemId) in fromSerializedKeyConfig()
181 copyTwoBytesFromInteger(kemId(), header, 1); in serializeOhttpPayloadHeader()
249 copyTwoBytesFromInteger(kemId(), serializedArray, currentIndex); in serializeKeyConfigToBytes()
283 public abstract Builder setKemId(int kemId); in setKemId() argument
DObliviousHttpGateway.java299 int kemId = ((cipherText[1] & 0xff) << 8) | (cipherText[2] & 0xff); in getKem() local
300 return KemAlgorithmSpec.get(kemId); in getKem()
342 int keyId, int kemId, int kdfId, int aeadId, boolean isMediaTypeChanged) in createRecipientKeyInfo() argument
354 dataOutputStream.writeShort(kemId); in createRecipientKeyInfo()
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/algorithms/
DHpkeAlgorithmSpec.java49 KemAlgorithmSpec kem = KemAlgorithmSpec.get(obliviousHttpKeyConfig.kemId()); in fromKeyConfig()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/
DJoinEncryptionKeyParserTest.java160 assertThat(keyConfig.kemId()).isEqualTo(0x0020); in getObliviousHttpKeyConfig_returnsKeyConfig()
DAuctionEncryptionKeyParserTest.java192 assertThat(keyConfig.kemId()).isEqualTo(0x0005); in getObliviousHttpKeyConfig_convertsKmsKeyIdToOhttpKeyIdCorrectly()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/
DObliviousHttpKeyConfigTest.java53 Assert.assertEquals(keyConfig.kemId(), 0X0020); in create_configuresKeyCorrectly()
DObliviousHttpClientTest.java77 testVector.keyConfig.kemId()); in create_supportedAlgorithms_kemIdSetCorrectly()
DOhttpJniWrapperTest.java820 int kemId = 0x0020; in createRecipientKeyInfoBytes() local
829 header[2] = (byte) kemId; in createRecipientKeyInfoBytes()