[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Should openssl accept weak DSA/DH keys with g = +/- 1 ?



On Tue, Apr 08, 2014 at 12:23:24PM +0300, Georgi Guninski wrote:
> other cases. (for $1$ I would expect probability
> $1$).

This was mistake, both certs had g= -1.
With g=1 probability is $1$ in
openssl and Konqueror.

cacert3.pem is with g=1.


> 
-------------- next part --------------
-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIBFTBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIxH80wKjVLOUCAggA
MBQGCCqGSIb3DQMHBAiKk5RW6pYvxASB0NX7ub1i7IB0iKhi9mzkldCOAXtPULHo
wbwFR4yu4lMOj57xhmgA/TSgIxLFj6b9bLC2y0SKXCOf8VNxkL6CxWkuGSni/y+w
zJLksztdX1z60lXJxRkyNHFZWHW6lL3SKIwwpNMp1/YpExhG8ZPr83ZPEP+lNsFH
gCAYyJteFZfVC19CLDDt/ET4wf8iEXypiPgDN6TvPAh9EulFYyk2vWVpSwH956il
PUczkkU7G9eho04dqjIZQVTT+Z+Lnq2Ed8DDGzDa3ytdouHaJYcn5f8=
-----END ENCRYPTED PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
MIIB/jCCAdGgAwIBAgIJAM5rZLy9VJdmMAkGByqGSM44BAMwRTELMAkGA1UEBhMC
QVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoMGEludGVybmV0IFdpZGdp
dHMgUHR5IEx0ZDAeFw0xNDA0MDgxMDQzMjJaFw0xNDA1MDgxMDQzMjJaMEUxCzAJ
BgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5l
dCBXaWRnaXRzIFB0eSBMdGQwgbMwgaoGByqGSM44BAEwgZ4CgYEA/jX7Klgx5HVc
WlqoH8oyo9aO/XqHhOoYVs8TlD+lCSjQ5PMKmdYkyQYxF4i0pFe8A7F0quUFY+LW
ORJEQqvBydRXqW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