Searched refs:kemId (Results 1 – 8 of 8) sorted by relevance
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/ |
D | ObliviousHttpKeyConfig.java | 53 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
|
D | ObliviousHttpGateway.java | 299 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/ |
D | HpkeAlgorithmSpec.java | 49 KemAlgorithmSpec kem = KemAlgorithmSpec.get(obliviousHttpKeyConfig.kemId()); in fromKeyConfig()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/encryption/ |
D | JoinEncryptionKeyParserTest.java | 160 assertThat(keyConfig.kemId()).isEqualTo(0x0020); in getObliviousHttpKeyConfig_returnsKeyConfig()
|
D | AuctionEncryptionKeyParserTest.java | 192 assertThat(keyConfig.kemId()).isEqualTo(0x0005); in getObliviousHttpKeyConfig_convertsKmsKeyIdToOhttpKeyIdCorrectly()
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/ |
D | ObliviousHttpKeyConfigTest.java | 53 Assert.assertEquals(keyConfig.kemId(), 0X0020); in create_configuresKeyCorrectly()
|
D | ObliviousHttpClientTest.java | 77 testVector.keyConfig.kemId()); in create_supportedAlgorithms_kemIdSetCorrectly()
|
D | OhttpJniWrapperTest.java | 820 int kemId = 0x0020; in createRecipientKeyInfoBytes() local 829 header[2] = (byte) kemId; in createRecipientKeyInfoBytes()
|