intel / pailliercryptolib

Intel Paillier Cryptosystem Library is an open-source library which provides accelerated performance of a partial homomorphic encryption (HE), named Paillier cryptosystem, by utilizing Intel® IPP-Crypto on AVX512IFMA instructions. Intel Paillier Cryptosystem Library is certified for ISO compliance.
Apache License 2.0
73 stars 18 forks source link

std::bad_alloc issue when serialize and deserialize a public key #64

Closed xhuan28 closed 1 year ago

xhuan28 commented 1 year ago

It seems that memory should be allocated before accessing here(https://github.com/intel/pailliercryptolib/blob/development/ipcl/include/ipcl/pub_key.hpp#L151).

xhuan28 commented 1 year ago

Fix this issue with https://github.com/intel/pailliercryptolib/pull/63