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

Removing seed setup and replacing rng function for PrimeGen_BN #8

Closed justalittlenoob closed 2 years ago

justalittlenoob commented 2 years ago
  1. getPrimeBN: remove seed setup
  2. ippsPrimeGen_BN: add support to TRNGen_RDSEED and PRNGen_RDRAND
  3. ippsPrimeGen_BN: set the last parameter to NULL when using ippsTRNGenRDSEED or ippsPRNGenRDRAND. According to IPP source code and document, the parameter will used in rndFunc(line 105), which is ippsTRNGenRDSEED/ippsPRNGenRDRAND/ippsPRNGen in our case. The 3rd parameter of ippsTRNGenRDSEED and ippsPRNGenRDRAND is unused and can be NULL. (https://www.intel.com/content/www/us/en/develop/documentation/ipp-crypto-reference/top/public-key-cryptography-functions/pseudorandom-number-generation-functions/trngenrdseed.html)
    image image