arnaucube
arnaucube/poulpyPublic Self-hosted repository
poulpy/poulpy-schemes/src/tfhe/blind_rotation/tests/generic_serialization.rs
poulpy-schemes/src/tfhe/blind_rotation/tests/generic_serialization.rsRaw
 1use poulpy_hal::tests::serialization::test_reader_writer_interface;
 2
 3use crate::tfhe::blind_rotation::{BlindRotationKey, BlindRotationKeyAlloc, BlindRotationKeyCompressed, CGGI};
 4
 5#[test]
 6fn test_cggi_blind_rotation_key_serialization() {
 7    let original: BlindRotationKey<Vec<u8>, CGGI> = BlindRotationKey::alloc(256, 64, 12, 54, 2, 2);
 8    test_reader_writer_interface(original);
 9}
10
11#[test]
12fn test_cggi_blind_rotation_key_compressed_serialization() {
13    let original: BlindRotationKeyCompressed<Vec<u8>, CGGI> = BlindRotationKeyCompressed::alloc(256, 64, 12, 54, 2, 2);
14    test_reader_writer_interface(original);
15}