Giter Club home page Giter Club logo

Comments (2)

sga001 avatar sga001 commented on August 28, 2024

Macro is defined in pir.hpp (https://github.com/microsoft/SealPIR/blob/master/pir.hpp#L10).

deserialize_query is also defined in pir.hpp:

PirQuery deserialize_query(std::uint32_t d, uint32_t count, std::string s, std::uint32_t len_ciphertext);

If my memory serves me right, d is the number of dimensions, count is the number of ciphertexts needed to encode the index in each dimension, s is the serialized query, and len_ciphertext is the size of the ciphertext in bytes.

from sealpir.

ReverseControl avatar ReverseControl commented on August 28, 2024

I have:

N = 4096
q = CoeffModulus::BFVDefault( N )  (SEAL v3.5.8)
t = 257

Ciphertext cp_data;   <-- I encrypt some data, and it is stored here.

cp.int_array().size() = 16384;   <- I expected this to be twice this size.
string data_serialized =   serialize_data( cp );
data_serialized.size() = 91194;

So, should CIPHER_SIZE be 16384?

from sealpir.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.