You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This change in Plaintext.h resembles the uint64_t setting for coeff_mod_count_ in Ciphertext.cpp.
Parameters to reproduce (pseudo code):
EncParms: {
schemeType: BFV,
polyModulusDegree: 4096,
security: tc128,
plainModulus: Batching(polyModulusDegree: 4096, bitsize: 20)
coeffModulus: BFVDefault(polyModulusDegree: 4096,
security: tc128)
}
Context: {
expandModChain: true,
security: tc128
}
Create a Plaintext and encode 4096 (max size of polyModulusDegree) misc values to it (within range)
Save the plaintext to a stream. (where the header size is computed incorrectly)
Attempt to load from the same stream. (where it throws during runtime)
The text was updated successfully, but these errors were encountered:
s0l0ist
changed the title
Possible inconsistent SEALHeader size for Plaintext deserialize in Load
Possible inconsistent size reported for Plaintext in save_size
Oct 17, 2019
When serializing/deserializing Plaintexts, there was an inconsistent size estimation resulting from an improper type when computing ComprSizeEstimate.
Previously, when running the following code:
plaintext.h line ~572:
Results in the incorrect member_size:
This, in turn, becomes an issue when deserializing a saved Plaintext stream where the stream.tellg() position calculation throws here:
serialization.cpp line ~657:
Replacing it with the following:
Results in the correct member_size:
This change in Plaintext.h resembles the
uint64_t
setting forcoeff_mod_count_
in Ciphertext.cpp.Parameters to reproduce (pseudo code):
The text was updated successfully, but these errors were encountered: