use std::fmt::Debug;
use crate::prelude::LweDimension;
use crate::backends::cuda::private::crypto::lwe::ciphertext::CudaLweCiphertext;
use crate::specification::entities::markers::LweCiphertextKind;
use crate::specification::entities::{AbstractEntity, LweCiphertextEntity};
#[derive(Debug)]
pub struct CudaLweCiphertext32(pub(crate) CudaLweCiphertext<u32>);
impl AbstractEntity for CudaLweCiphertext32 {
type Kind = LweCiphertextKind;
}
impl LweCiphertextEntity for CudaLweCiphertext32 {
fn lwe_dimension(&self) -> LweDimension {
self.0.lwe_dimension
}
}
#[derive(Debug)]
pub struct CudaLweCiphertext64(pub(crate) CudaLweCiphertext<u64>);
impl AbstractEntity for CudaLweCiphertext64 {
type Kind = LweCiphertextKind;
}
impl LweCiphertextEntity for CudaLweCiphertext64 {
fn lwe_dimension(&self) -> LweDimension {
self.0.lwe_dimension
}
}