Created
November 30, 2015 03:57
-
-
Save mafrasi2/ed754ff93af54391256a to your computer and use it in GitHub Desktop.
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
bytevector_t data = receive(1024); | |
ASN1Structure dh_params = ASN1Structure::parseDER(dat); | |
// dh_params[0] ist die Sequence und dh_params[0][0] ist das | |
// 0te Element der Sequence, also der ASN1Integer p | |
mpz_class p = dh_params[0][0].get_mpz(); | |
mpz_class g = dh_params[0][1].get_mpz(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment