Skip to content

Commit

Permalink
Increase default keysize to 3072 (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
hardbyte authored Aug 10, 2018
1 parent faed51b commit b18ad1d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion phe/paillier.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@
from phe import EncodedNumber
from phe.util import invert, powmod, getprimeover, isqrt

DEFAULT_KEYSIZE = 2048
# Paillier cryptosystem is based on integer factorisation.
# The default is chosen to give a minimum of 128 bits of security.
# https://www.keylength.com/en/4/
DEFAULT_KEYSIZE = 3072


def generate_paillier_keypair(private_keyring=None, n_length=DEFAULT_KEYSIZE):
Expand Down

0 comments on commit b18ad1d

Please sign in to comment.