You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the plaintxt range of the Elgamal ? If the mcl::ecparam::secp160k1 is used, shoud the plaintext domain be 160-bits (i.e., 2^160) ?
Should we need to cache all the elements in the plaintext range (the setCache method in the private key class), if we want to use Elgamal to do arithmetic computation ?
The text was updated successfully, but these errors were encountered:
What is the plaintxt range of the Elgamal? If the mcl::ecparam::secp160k1 is used, shoud the plaintext domain be 160-bits (i.e., 2^160) ?
Yes. But it is necessary to solve a small DLP to decrypt a message.
So we can not use large message space.
The range is set by PrivateKey::setCache(min, max);
It requires (max - min) * (sizeof(Ec) + alpha) memory.
mcl::ecparam::secp160k1
is used, shoud the plaintext domain be 160-bits (i.e., 2^160) ?setCache
method in the private key class), if we want to use Elgamal to do arithmetic computation ?The text was updated successfully, but these errors were encountered: