diff --git a/libcrux-kem/src/kem.rs b/libcrux-kem/src/kem.rs index 6aa54551f..99866ad05 100644 --- a/libcrux-kem/src/kem.rs +++ b/libcrux-kem/src/kem.rs @@ -850,26 +850,6 @@ impl Ct { ct_x.try_into().map_err(|_| Error::InvalidCiphertext)?, )) } - #[cfg(feature = "kyber")] - Algorithm::X25519Kyber768Draft00 => { - let key: [u8; MlKem768Ciphertext::len() + 32] = - bytes.try_into().map_err(|_| Error::InvalidCiphertext)?; - let (xct, kct) = key.split_at(32); - Ok(Self::X25519Kyber768Draft00( - kct.try_into().map_err(|_| Error::InvalidCiphertext)?, - xct.try_into().map_err(|_| Error::InvalidCiphertext)?, - )) - } - #[cfg(feature = "kyber")] - Algorithm::XWingKyberDraft02 => { - let key: [u8; MlKem768Ciphertext::len() + 32] = - bytes.try_into().map_err(|_| Error::InvalidCiphertext)?; - let (ct_m, ct_x) = key.split_at(MlKem768Ciphertext::len()); - Ok(Self::XWingKyberDraft02( - ct_m.try_into().map_err(|_| Error::InvalidCiphertext)?, - ct_x.try_into().map_err(|_| Error::InvalidCiphertext)?, - )) - } Algorithm::MlKem1024 => bytes .try_into() .map_err(|_| Error::InvalidCiphertext)