Searched refs:KemAlgorithmSpec (Results 1 – 5 of 5) sorted by relevance
26 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()
30 public abstract KemAlgorithmSpec kem(); in kem()39 KemAlgorithmSpec kem, KdfAlgorithmSpec kdf, AeadAlgorithmSpec aead) { in create()49 KemAlgorithmSpec kem = KemAlgorithmSpec.get(obliviousHttpKeyConfig.kemId()); in fromKeyConfig()
27 public abstract class KemAlgorithmSpec { class65 private static KemAlgorithmSpec dhkemX25519HkdfSha256() { in dhkemX25519HkdfSha256()83 public static KemAlgorithmSpec get(int identifier) throws UnsupportedHpkeAlgorithmException { in get()
23 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()
21 import com.android.adservices.ohttp.algorithms.KemAlgorithmSpec;330 int length = KemAlgorithmSpec.get(kemIdentifier).publicKeyLength(); in getPublicKeyLengthInBytes()