Last active
February 5, 2016 17:53
-
-
Save mimoo/1d46622a5c6a96ce1f72 to your computer and use it in GitHub Desktop.
check new socat's dh2048_p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# socat's new dh params | |
dh2048_p = 0x00dc216456bd9cb2acbec998ef953e26fab557bcd9e675c043a21c7a85df34ab57a8f6bcf6847d056904834cd556d385090a08ffb537a1a38a370446d2933196f4e40d9fbd3e7f9e4daf08e2e8039473c4dc0687bb6dae662d181fd847065ccf8ab50051579bea1ed8db8e3c1fd32fba1f5f3d15c13b2c8242c88c87795b38863aebfd81a9baf7265b93c53e03304b005cb6233eea94c3b471c76e643bf89265ad606cd47ba9672604a80ab206ebe07d90ddddf5cfb4117cabc1a384be2777c7de20576647a735fe0d6a1c52b858bf2633815eb7a9c0ee581174861908891c370d524770758ba88b3011713662f07341ee349d0a2b674e6aa3e299921bf5327363 | |
dh2048_g = 2 | |
# is_prime(dh2048_p) -> True | |
q = (dh2048_p - 1) / 2 | |
print is_prime(q) # -> False | |
q = ZZ(q) | |
proof.arithmetic(False) | |
print is_prime(q) # -> True | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment