Home
last modified time | relevance | path

Searched refs:KemAlgorithmSpec (Results 1 – 5 of 5) sorted by relevance

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ohttp/algorithms/
DKemAlgorithmSpecTest.java26 Assert.assertThrows(UnsupportedHpkeAlgorithmException.class, () -> KemAlgorithmSpec.get(1)); in get_unsupportedId_throwsError()
31 KemAlgorithmSpec kemAlgorithmSpec = in get_supportedId_returnsCorrectSpec()
32 KemAlgorithmSpec.get(KemAlgorithmSpec.DHKEM_X25519_HKDF_SHA256_IDENTIFIER); in get_supportedId_returnsCorrectSpec()
40 KemAlgorithmSpec.DHKEM_X25519_HKDF_SHA256_IDENTIFIER); in get_supportedId_returnsCorrectSpec()
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/algorithms/
DHpkeAlgorithmSpec.java30 public abstract KemAlgorithmSpec kem(); in kem()
39 KemAlgorithmSpec kem, KdfAlgorithmSpec kdf, AeadAlgorithmSpec aead) { in create()
49 KemAlgorithmSpec kem = KemAlgorithmSpec.get(obliviousHttpKeyConfig.kemId()); in fromKeyConfig()
DKemAlgorithmSpec.java27 public abstract class KemAlgorithmSpec { class
65 private static KemAlgorithmSpec dhkemX25519HkdfSha256() { in dhkemX25519HkdfSha256()
83 public static KemAlgorithmSpec get(int identifier) throws UnsupportedHpkeAlgorithmException { in get()
/packages/modules/AdServices/adservices/service-core/jni/java/com/android/adservices/ohttp/
DObliviousHttpGateway.java23 import com.android.adservices.ohttp.algorithms.KemAlgorithmSpec;
79 KemAlgorithmSpec kemAlgorithmSpec; in decrypt()
167 KemAlgorithmSpec kemAlgorithmSpec; in encrypt()
297 private static KemAlgorithmSpec getKem(byte[] cipherText) in getKem()
300 return KemAlgorithmSpec.get(kemId); in getKem()
DObliviousHttpKeyConfig.java21 import com.android.adservices.ohttp.algorithms.KemAlgorithmSpec;
330 int length = KemAlgorithmSpec.get(kemIdentifier).publicKeyLength(); in getPublicKeyLengthInBytes()