mirror of
https://github.com/arnaucube/poulpy.git
synced 2026-02-10 13:16:44 +01:00
16 lines
466 B
Rust
16 lines
466 B
Rust
use backend::hal::tests::serialization::test_reader_writer_interface;
|
|
|
|
use crate::{LWECiphertext, LWECiphertextCompressed};
|
|
|
|
#[test]
|
|
fn lwe_serialization() {
|
|
let original: LWECiphertext<Vec<u8>> = LWECiphertext::alloc(771, 12, 54);
|
|
test_reader_writer_interface(original);
|
|
}
|
|
|
|
#[test]
|
|
fn lwe_serialization_compressed() {
|
|
let original: LWECiphertextCompressed<Vec<u8>> = LWECiphertextCompressed::alloc(12, 54);
|
|
test_reader_writer_interface(original);
|
|
}
|