-1
$\begingroup$

I want public key cryptosystem to used for re-encryption as describe in Can Paillier ,RSA or any other schemes be used for universal re-encryption like elGamal? Now i have little solution for Paillier cryptosystem, to choose key that is dependent on environmental variable. i,e IP-Address . The problem is how to map this environmental variable to generate two prime p and q, so that it can be regenerated in same way in decryption algorithm( Need decryption key to dependent on environmental variables).

Is there way to map arbitrary variable(environmental key) to map/ generate p and q?

$\endgroup$
0
$\begingroup$

If you can have a secret key and it's fine for the party holding this key to also know the factorization, then yes this is quite easy.

Use your key to apply a pseudorandom function to the data you want the key determined by. If necessary use a pseudorandom generator to stretch the output.

Then use that output as the random coins for any standard probabilistic algorithm for generating two prime numbers with the required properties.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.