Open peterstory opened 9 years ago
Perhaps a naive question... is there anything else that uses PublicKeyCryptosystem
?
BlumGoldwasser
is actually the only module which uses PublicKeyCryptosystem
. So it might be worth removing PublicKeyCryptosystem
altogether. PublicKeyCryptosystem
is defined on line 375 of crypto/cryptosystem.py
.
BlumGoldwasser
doesn't properly inherit from its superclass,PublicKeyCryptosystem
.First, initialization is incomplete. The superclass of
PublicKeyCryptosystem
isCryptosystem
, whose initialization requires the arguments:plaintext_space
,ciphertext_space
,key_space
,block_length
, andperiod
. These are not being supplied.As a result, calls to the methods
plaintext_space()
,cipher_domain()
,ciphertext_space()
,cipher_codomain()
,key_space()
,block_length()
, andperiod()
fail. For example:The easiest solution would be to stop inheriting from
PublicKeyCryptosystem
.CC: @kcrisman
Component: cryptography
Issue created by migration from https://trac.sagemath.org/ticket/18413