ntl

Error using boost serialization with binary archive

南笙酒味 提交于 2021-02-18 17:12:49
问题 I get the following error while reading from boost::archive::binary_iarchive into my variable: test-serialization(9285,0x11c62fdc0) malloc: can't allocate region *** mach_vm_map(size=18014398509486080) failed (error code=3) test-serialization(9285,0x11c62fdc0) malloc: *** set a breakpoint in malloc_error_break to debug My serialization and deserialization code are: template<class Archive> void save(Archive & archive, const helib::PubKey & pubkey, const unsigned int version){ BOOST_TEST

Error using boost serialization with binary archive

别来无恙 提交于 2021-02-18 17:12:12
问题 I get the following error while reading from boost::archive::binary_iarchive into my variable: test-serialization(9285,0x11c62fdc0) malloc: can't allocate region *** mach_vm_map(size=18014398509486080) failed (error code=3) test-serialization(9285,0x11c62fdc0) malloc: *** set a breakpoint in malloc_error_break to debug My serialization and deserialization code are: template<class Archive> void save(Archive & archive, const helib::PubKey & pubkey, const unsigned int version){ BOOST_TEST

Compiling NTL library in Visual Studio 2013

淺唱寂寞╮ 提交于 2020-01-16 03:05:41
问题 I have downloaded NTL version 6.1.0 from http://www.shoup.net/ntl/download.html and having trouble compiling it in Visual Studio 2013. The documentation (http://www.shoup.net/ntl/doc/tour-win.html) only shows how to compile NTL in MSVC++ 6 which is not working in my case. I need to use the NTL library to code the prime number in my cryptography project - ElGamal Digital Signature Scheme. 回答1: Use the "File\New\Project From Existing Code..." menu item. In the first page of the "Create New

How can i convert a string into a ZZ number?

◇◆丶佛笑我妖孽 提交于 2019-12-24 06:52:29
问题 I'm using the NTL library to implement ElGamal encryption/decryption algorithm. I've got it to the point that it's working but the algorithm wants the message to be converted to integers so it can be encrypted. So if i input a number like 1234 everything works ok but how would i go to be able to convert a C++ string (std::string) to a ZZ number and then back from that ZZ number to a string? LE : ZZ it's a class that represent a large number. Ex:

JNI build shared library using static NTL library

送分小仙女□ 提交于 2019-12-23 03:15:31
问题 I wrote C++ code for JNI then built shared library. This shared lib is using NTL static library. But it gets following error. Compiler configuration and error (Netbeans): g++ -c -O2 -s -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -I/usr/local/include/NTL -fPIC -MMD -MP -MF "build/Debug/GNU-Linux/ntl4java.o.d" -o build/Debug/GNU-Linux/ntl4java.o ntl4java.cpp mkdir -p dist/Debug/GNU-Linux g++ -o dist/Debug/GNU-Linux/libntl4java.so build/Debug/GNU-Linux/ntl4java

JNI build shared library using static NTL library

我们两清 提交于 2019-12-23 03:15:01
问题 I wrote C++ code for JNI then built shared library. This shared lib is using NTL static library. But it gets following error. Compiler configuration and error (Netbeans): g++ -c -O2 -s -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -I/usr/local/include/NTL -fPIC -MMD -MP -MF "build/Debug/GNU-Linux/ntl4java.o.d" -o build/Debug/GNU-Linux/ntl4java.o ntl4java.cpp mkdir -p dist/Debug/GNU-Linux g++ -o dist/Debug/GNU-Linux/libntl4java.so build/Debug/GNU-Linux/ntl4java

JNI build shared library using static NTL library

梦想的初衷 提交于 2019-12-06 23:43:30
I wrote C++ code for JNI then built shared library. This shared lib is using NTL static library. But it gets following error. Compiler configuration and error (Netbeans): g++ -c -O2 -s -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -I/usr/local/include/NTL -fPIC -MMD -MP -MF "build/Debug/GNU-Linux/ntl4java.o.d" -o build/Debug/GNU-Linux/ntl4java.o ntl4java.cpp mkdir -p dist/Debug/GNU-Linux g++ -o dist/Debug/GNU-Linux/libntl4java.so build/Debug/GNU-Linux/ntl4java.o -lgmp -lntl -shared -s -fPIC /usr/bin/ld: //usr/local/lib/libntl.a(lip.o): relocation R_X86_64_32