I am using cURL and Microsoft SEAL in C++. I need to serialize a Ciphertext object to send it to a server through a POST request.
The Ciphertext object is serialized into a stringstream but, in order to send it, I need to convert it to a const char*. The problem is that, initially, the string obtained from the stringstream is 88500 chars long (approx.); but, when converted to const char*, it is reduced to 6.
Could the 7th character be '\0', so it is detected as the end of the string? (Both .c_str() and .data() return the same result.)
stringstream st;
cipheredAspirineList[0].save(st);
simplePost("postSingleCipheredAspirine", st.str().c_str());