cd23639 Backport of fix for CVE-2018-6594 from pycryptodome

Authored and Committed by pghmcfc 6 years ago
    Backport of fix for CVE-2018-6594 from pycryptodome
    
    When creating ElGamal keys, the generator wasn't a square residue: ElGamal
    encryption done with those keys cannot be secure under the DDH assumption
    
    -  https://bugzilla.redhat.com/show_bug.cgi?id=1542313 (CVE-2018-6594)
    -  https://github.com/TElgamal/attack-on-pycrypto-elgamal
    -  https://github.com/Legrandin/pycryptodome/issues/90
    -  https://github.com/dlitz/pycrypto/issues/253
    -  https://github.com/dlitz/pycrypto/pull/256
    
        
file modified
+23 -1